mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-03-18 05:41:43 +01:00
bug
This commit is contained in:
parent
7dbe64300a
commit
10e005c0e9
@ -82,8 +82,12 @@ export class StratumV1Client {
|
||||
}
|
||||
|
||||
public destroy() {
|
||||
this.stratumSubscription.unsubscribe();
|
||||
clearInterval(this.backgroundWork);
|
||||
if (this.stratumSubscription != null) {
|
||||
this.stratumSubscription.unsubscribe();
|
||||
}
|
||||
if (this.backgroundWork != null) {
|
||||
clearInterval(this.backgroundWork);
|
||||
}
|
||||
}
|
||||
|
||||
private getRandomHexString() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user