mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Audio] Restart Lavalink after unexpected shutdown (#3034)
* fix(audio): lavalink not getting restarted after unexpected shutdown * chore(changelog): add towncrier entry
This commit is contained in:
parent
2ba6fb17ca
commit
2dbed96be1
1
changelog.d/3033.bugfix.rst
Normal file
1
changelog.d/3033.bugfix.rst
Normal file
@ -0,0 +1 @@
|
||||
Lavalink will now be restarted after unexpected shutdown.
|
||||
@ -59,7 +59,7 @@ class ServerManager:
|
||||
if self._proc is not None:
|
||||
if self._proc.returncode is None:
|
||||
raise RuntimeError("Internal Lavalink server is already running")
|
||||
else:
|
||||
elif self._shutdown:
|
||||
raise RuntimeError("Server manager has already been used - create another one")
|
||||
|
||||
await self.maybe_download_jar()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user