Skip to content

Commit

Permalink
Fix #223 missed a case
Browse files Browse the repository at this point in the history
  • Loading branch information
c-geek committed Nov 24, 2015
1 parent 98fcf32 commit c167294
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/service/PeeringService.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,12 @@ function PeeringService(server, pair, dal) {
}
} catch (err) {
logger.warn(err);
try {
let nowCurrent = yield dal.getCurrentBlockOrNull();
yield server.BlockchainService.tryToFork(nowCurrent);
} catch (e) {
logger.warn(e);
}
}
}
}
Expand Down

0 comments on commit c167294

Please sign in to comment.