pool: fix startSync.
This commit is contained in:
parent
933d80bb37
commit
f8fa536129
@ -713,13 +713,13 @@ Pool.prototype.setLoader = function setLoader(peer) {
|
||||
*/
|
||||
|
||||
Pool.prototype.startSync = co(function* startSync() {
|
||||
yield this.connect();
|
||||
|
||||
this.syncing = true;
|
||||
|
||||
this.startInterval();
|
||||
this.startTimeout();
|
||||
|
||||
yield this.connect();
|
||||
|
||||
if (!this.peers.load) {
|
||||
this.addLoader();
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user