1
0
Fork 0
mirror of synced 2024-06-02 02:34:40 +12:00

GameProcess: Don't spam with not found processes on startup

This commit is contained in:
loathingKernel 2023-12-06 10:52:21 +02:00
parent dab13748f3
commit c2676eaa90
No known key found for this signature in database
GPG key ID: CE0C72D0B53821FD

View file

@ -117,7 +117,8 @@ class GameProcess(QObject):
self.timer.stop()
self.__close()
self.__game_finished(GameProcess.Code.ON_STARTUP) # 1234 is exit code for startup
logger.error(f"{self.game.app_name} ({self.game.app_title}): {self.socket.errorString()}")
else:
logger.error(f"{self.game.app_name} ({self.game.app_title}): {self.socket.errorString()}")
def __game_finished(self, exit_code: int):
self.finished.emit(exit_code)