Skip to content
Snippets Groups Projects

Dependencies-related work

Merged Mateusz Tyszczak requested to merge tm-remove-account-observer into main
2 files
+ 4
1
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 2
1
@@ -150,7 +150,8 @@ export class WorkerBee extends EventEmitter implements IWorkerBee {
@@ -150,7 +150,8 @@ export class WorkerBee extends EventEmitter implements IWorkerBee {
} // Else -> no new block
} // Else -> no new block
} catch (error) {
} catch (error) {
// Ensure we are emitting the Error instance
// Ensure we are emitting the Error instance
super.emit("error", new WorkerBeeError(`Error occurred during automation: ${String(error)}`, error));
if (super.listenerCount("error") > 0)
 
super.emit("error", new WorkerBeeError(`Error occurred during automation: ${String(error)}`, error));
// Wait before any next operation is performed to reduce spamming the API
// Wait before any next operation is performed to reduce spamming the API
await new Promise(res => { setTimeout(res, DEFAULT_BLOCK_INTERVAL_TIMEOUT); });
await new Promise(res => { setTimeout(res, DEFAULT_BLOCK_INTERVAL_TIMEOUT); });
Loading