Skip to content

Commit

Permalink
fix(player): cleanup if NoNodesAvailable
Browse files Browse the repository at this point in the history
  • Loading branch information
ooliver1 committed Jun 2, 2023
1 parent 23c4d22 commit 12a8e03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mafic/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ async def connect(
raise TypeError(msg)

if not NodePool.nodes: # pyright: ignore
self.cleanup()
raise NoNodesAvailable

_log.debug("Connecting to voice channel %s", self.channel.id)
Expand Down

0 comments on commit 12a8e03

Please sign in to comment.