1
0
Fork 0
mirror of synced 2024-06-26 10:11:19 +12:00

Fix crash on launch helper exit

This commit is contained in:
lennard 2023-05-08 18:58:49 +02:00
parent 21a339b394
commit ae8cee76ae
No known key found for this signature in database
GPG key ID: AB6010FE63C7C2B1

View file

@ -346,11 +346,14 @@ class RareLauncher(RareApp):
self.start_prepare()
def stop(self):
if self.console:
self.game_process.readyReadStandardOutput.disconnect()
self.game_process.readyReadStandardError.disconnect()
self.game_process.finished.disconnect()
self.game_process.errorOccurred.disconnect()
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()