Skip to content

Hangup on resume #19

Locked Answered by UpstreamData
KHaxel1337 asked this question in Q&A
Discussion options

You must be logged in to vote

Looking at this code, it looks like you are using asyncio.create_task() to run the pause in the background when you actually want to await it. Awaiting it will block until the tasks complete.

Basically replace asyncio.create_task(stop_all_miners(miners)) with await stop_all_miners(miners), same goes for the resume.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by UpstreamData
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants