mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-08-08 17:23:20 +02:00
bug
This commit is contained in:
@@ -82,9 +82,13 @@ export class StratumV1Client {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public destroy() {
|
public destroy() {
|
||||||
|
if (this.stratumSubscription != null) {
|
||||||
this.stratumSubscription.unsubscribe();
|
this.stratumSubscription.unsubscribe();
|
||||||
|
}
|
||||||
|
if (this.backgroundWork != null) {
|
||||||
clearInterval(this.backgroundWork);
|
clearInterval(this.backgroundWork);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private getRandomHexString() {
|
private getRandomHexString() {
|
||||||
const randomBytes = crypto.randomBytes(4); // 4 bytes = 32 bits
|
const randomBytes = crypto.randomBytes(4); // 4 bytes = 32 bits
|
||||||
|
Reference in New Issue
Block a user