mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
nerdminer
This commit is contained in:
@@ -294,8 +294,8 @@ export class StratumV1Client extends EasyUnsubscribe {
|
||||
}
|
||||
const now = Date.now();
|
||||
const diffSeconds = (now - time.getTime()) / 1000;
|
||||
// five minutes
|
||||
if (diffSeconds > 5 * 60) {
|
||||
// fifteen minutes
|
||||
if (diffSeconds > 15 * 60) {
|
||||
console.log('Watchdog ending session');
|
||||
this.promiseSocket.socket.emit('end', true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user