Fix crash on launch helper exit
This commit is contained in:
parent
21a339b394
commit
ae8cee76ae
1 changed files with 8 additions and 5 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue