Fix invalid close errors on websockets 4.x

Fixes #1110
This commit is contained in:
Rapptz committed 2018-03-06 00:15:36 -05:00
1 parent 0fcd385b9a
commit a425bd91be
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -190,7 +190,7 @@ class VoiceClient:
if self._handshake_complete.is_set():
# terminate the websocket and handle the reconnect loop if necessary.
self._handshake_complete.clear()
yield from self.ws.close(1006)
yield from self.ws.close(4000)
return
self._handshake_complete.set()