-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
50190e0
commit 9db0dad
Showing
1 changed file
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters