1
0
Fork 0
mirror of synced 2024-09-29 08:51:43 +13: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() self.start_prepare()
def stop(self): def stop(self):
if self.console: try:
self.game_process.readyReadStandardOutput.disconnect() if self.console:
self.game_process.readyReadStandardError.disconnect() self.game_process.readyReadStandardOutput.disconnect()
self.game_process.finished.disconnect() self.game_process.readyReadStandardError.disconnect()
self.game_process.errorOccurred.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") self.logger.info("Stopping server")
try: try:
self.server.close() self.server.close()