Skip to content

Commit

Permalink
bugfix rtmonitor_api.js (this -> self) bad rtmonitor reconnects
Browse files Browse the repository at this point in the history
  • Loading branch information
ijl20 committed Aug 14, 2018
1 parent 83d43e3 commit 9ae3372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tfc_web/static/js/rtmonitor_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ this.connect = function()
self.disconnect_callbacks[i].callback.call(self.disconnect_callbacks[i].caller)
}
// start interval timer trying to reconnect
clearInterval(this.sock_timer);
clearInterval(self.sock_timer);
self.sock_timer = setInterval(function (rt) { return function () { rt.reconnect(); } }(self), 10000);
};
};
Expand Down

0 comments on commit 9ae3372

Please sign in to comment.