Skip to content

Always call the callback even when mining is disabled - #4

Merged
soc1c merged 1 commit into
goerli:masterfrom
ajsutton:call-callback
Aug 2, 2019
Merged

Always call the callback even when mining is disabled#4
soc1c merged 1 commit into
goerli:masterfrom
ajsutton:call-callback

Conversation

@ajsutton

Copy link
Copy Markdown
Contributor

When retrieving the hash rate within the async block, we need to make sure the callback is always called - even if we skip calling the actual JSON-RPC method because mining disabled. Otherwise the overall async never completes because it continues waiting for this remaining function.

@soc1c

soc1c commented Aug 2, 2019

Copy link
Copy Markdown
Contributor

Thanks!

@suthephbuytengchay-ctrl

Copy link
Copy Markdown

#5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants