Turn KeepAliveHandler
into an asyncio.Task
#94
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "Gnome-py/KeepAliveHandler-task"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
For unknown reasons, the
KeepAliveHandler
was a thread, which just sleeps and doesrun_coroutine_threadsafe
, which seemed kinda dumb to me. This is also the reason for a thread per voice channel, asKeepAliveHandler
was subclassed forVoiceKeepAliveHandler
.This PR turns the thread into an
asyncio.Task
, and just usesasyncio.wait_for
andawait
for the calls.Checklist
Checkout
From your project repository, check out a new branch and test the changes.