Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit 84568ae

Browse files
committed
Ensure is_connected returns False after disconnecting.
1 parent 72a4ed4 commit 84568ae

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

wavelink/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
__author__ = 'EvieePy'
33
__license__ = 'MIT'
44
__copyright__ = 'Copyright 2019-2021 (c) PythonistaGuild'
5-
__version__ = '0.9.8'
5+
__version__ = '0.9.9'
66

77
from .client import Client
88
from .errors import *

wavelink/player.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ async def _voice_state_update(self, data) -> None:
226226
channel_id = data['channel_id']
227227

228228
if not channel_id: # We're disconnecting
229+
self.channel_id = None
229230
self._voice_state.clear()
230231
return
231232

0 commit comments

Comments
 (0)