5 Commits

Author SHA1 Message Date
Imayhaveborkedit
9db0dadc42
Fix voice disconnect+connect race condition
Fixes a race condition when disconnecting and immediately connecting
again.  Also fixes disconnect() being called twice.

Let me be clear, I DO NOT LIKE THIS SOLUTION.  I think it's dumb but I
don't see any other reasonable alternative.  There isn't a way to
transfer state to a new connection state object and I can't think of a
nice way to do it either.  That said, waiting an arbitrary amount of
time for an arbitrary websocket event doesn't seem like the right
solution either, but it's the best I can do at this point.
2023-12-14 19:09:04 -05:00
Imayhaveborkedit
c7edfc7c16
Future proof usage of async_timeout 2023-10-24 16:07:56 -04:00
Imayhaveborkedit
e1aa6cc264
Fix bad voice state when moving to a voice channel without permissions 2023-10-01 17:45:55 -04:00
Imayhaveborkedit
9f8f9bf56b
Fix incorrect callback typing for WebsocketHook 2023-09-28 18:56:14 -04:00
Imayhaveborkedit
44284ae107
Rewrite voice connection internals 2023-09-28 17:51:22 -04:00