mirror of
https://github.com/lutris/lutris
synced 2024-10-14 19:53:53 +00:00
Do not attempt to stop the game-process if it is not running.
This makes the stop button switch back to play more promptly.
This commit is contained in:
parent
3dcf146a94
commit
0eef634bbf
|
@ -784,7 +784,8 @@ class Game(GObject.Object):
|
|||
"""Finds the PIDs of processes that need killin'!"""
|
||||
pids = self.get_game_pids()
|
||||
if self.game_thread and self.game_thread.game_process:
|
||||
pids.add(self.game_thread.game_process.pid)
|
||||
if self.game_thread.game_process.poll() is None:
|
||||
pids.add(self.game_thread.game_process.pid)
|
||||
return pids
|
||||
|
||||
def get_game_pids(self):
|
||||
|
|
Loading…
Reference in a new issue