rm run locked
This commit is contained in:
parent
ac24f66801
commit
9360144950
|
@ -1223,17 +1223,15 @@ WalletService.prototype.startScan = function(opts, cb) {
|
||||||
self._notify('ScanFinished', data, true);
|
self._notify('ScanFinished', data, true);
|
||||||
};
|
};
|
||||||
|
|
||||||
Utils.runLocked(self.walletId, cb, function(cb) {
|
self.getWallet({}, function(err, wallet) {
|
||||||
self.getWallet({}, function(err, wallet) {
|
if (err) return cb(err);
|
||||||
if (err) return cb(err);
|
if (!wallet.isComplete()) return cb(new ClientError('Wallet is not complete'));
|
||||||
if (!wallet.isComplete()) return cb(new ClientError('Wallet is not complete'));
|
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
self.scan(opts, scanFinished);
|
self.scan(opts, scanFinished);
|
||||||
}, 100);
|
}, 100);
|
||||||
|
|
||||||
return cb();
|
return cb();
|
||||||
});
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue