Close Spotify on node.disconnect

This commit is contained in:
Tari 2022-02-22 15:39:18 +05:30
parent d15469d2b8
commit 292f956bfc
1 changed files with 3 additions and 0 deletions

View File

@ -256,6 +256,9 @@ class Node:
"""
for player in self.players.copy().values():
await player.destroy()
if self._spotify_client:
await self._spotify_client.close()
await self._websocket.close()
del self._pool.nodes[self._identifier]