diff --git a/lib/server.js b/lib/server.js index 67d75b4..847de42 100644 --- a/lib/server.js +++ b/lib/server.js @@ -1223,17 +1223,15 @@ WalletService.prototype.startScan = function(opts, cb) { self._notify('ScanFinished', data, true); }; - Utils.runLocked(self.walletId, cb, function(cb) { - self.getWallet({}, function(err, wallet) { - if (err) return cb(err); - if (!wallet.isComplete()) return cb(new ClientError('Wallet is not complete')); + self.getWallet({}, function(err, wallet) { + if (err) return cb(err); + if (!wallet.isComplete()) return cb(new ClientError('Wallet is not complete')); - setTimeout(function() { - self.scan(opts, scanFinished); - }, 100); + setTimeout(function() { + self.scan(opts, scanFinished); + }, 100); - return cb(); - }); + return cb(); }); };