This commit is contained in:
Ben Wilson
2023-07-31 09:12:58 -04:00
parent 432f5c4325
commit 3a1ae6bf09
6 changed files with 49 additions and 8 deletions
+7 -5
View File
@@ -287,11 +287,13 @@ export class StratumV1Client extends EasyUnsubscribe {
this.stratumV1JobsService.newMiningJob$.pipe(
takeUntil(this.easyUnsubscribe)
).subscribe(async (jobTemplate) => {
await this.sendNewMiningJob(jobTemplate);
await this.checkDifficulty();
await this.watchdog();
try {
await this.sendNewMiningJob(jobTemplate);
await this.checkDifficulty();
await this.watchdog();
} catch (e) {
this.promiseSocket.socket.emit('end', true);
}
});
}