Fix crash on launch helper exit
This commit is contained in:
parent
21a339b394
commit
ae8cee76ae
|
@ -346,11 +346,14 @@ class RareLauncher(RareApp):
|
|||
self.start_prepare()
|
||||
|
||||
def stop(self):
|
||||
try:
|
||||
if self.console:
|
||||
self.game_process.readyReadStandardOutput.disconnect()
|
||||
self.game_process.readyReadStandardError.disconnect()
|
||||
self.game_process.finished.disconnect()
|
||||
self.game_process.errorOccurred.disconnect()
|
||||
except TypeError as e:
|
||||
logger.error(f"Failed to disconnect signals: {e}")
|
||||
self.logger.info("Stopping server")
|
||||
try:
|
||||
self.server.close()
|
||||
|
|
Loading…
Reference in a new issue