Be defensive in case Discord breaks something with WS URLs again
This commit is contained in:
parent
a1d6ff82dd
commit
250f29989b
@ -188,6 +188,10 @@ class VoiceClient:
|
|||||||
return
|
return
|
||||||
|
|
||||||
self.endpoint, _, _ = endpoint.rpartition(':')
|
self.endpoint, _, _ = endpoint.rpartition(':')
|
||||||
|
if self.endpoint.startswith('wss://'):
|
||||||
|
# Just in case, strip it off since we're going to add it later
|
||||||
|
self.endpoint = self.endpoint[6:]
|
||||||
|
|
||||||
# This gets set later
|
# This gets set later
|
||||||
self.endpoint_ip = None
|
self.endpoint_ip = None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user