Skip to content

Commit

Permalink
fix: timer
Browse files Browse the repository at this point in the history
  • Loading branch information
avsetsin committed Dec 1, 2021
1 parent b489e9f commit f8a456a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/provider/provider.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ const getProviderFactory = (SourceProvider: typeof JsonRpcProvider) => {
}, MAX_TIME_WITHOUT_NEW_BLOCKS_MS);
};

startDieTimer(-1);

if (eventName === 'block') {
startDieTimer(-1);

super.on(eventName, function (this: any, ...args) {
startDieTimer(args[0]);
return listener?.apply(this, args);
Expand Down

0 comments on commit f8a456a

Please sign in to comment.