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() {
|
Pool.prototype.startSync = co(function* startSync() {
|
||||||
|
yield this.connect();
|
||||||
|
|
||||||
this.syncing = true;
|
this.syncing = true;
|
||||||
|
|
||||||
this.startInterval();
|
this.startInterval();
|
||||||
this.startTimeout();
|
this.startTimeout();
|
||||||
|
|
||||||
yield this.connect();
|
|
||||||
|
|
||||||
if (!this.peers.load) {
|
if (!this.peers.load) {
|
||||||
this.addLoader();
|
this.addLoader();
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user