Skip to content

Commit

Permalink
Fixes the out of sync
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryWm authored Jan 15, 2018
1 parent e440739 commit a371a2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/WebControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class WebControl extends WebStatBase {
});

this.disconnect_count = 0;
events.on("stratum:client:disconnect", () => {
events.on("stratum:client:close", () => {
if ( this.disconnect_count-- <= 0 ) {
setTimeout(() => {
for(let i in this.pools) {
Expand Down Expand Up @@ -137,4 +137,4 @@ class WebControl extends WebStatBase {

}

module.exports = WebControl;
module.exports = WebControl;

0 comments on commit a371a2b

Please sign in to comment.