mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 15:47:20 +02:00
gamemode: Never add NULL to the client list
When running wine games, there's good chance the executable is already gone when GameMode decided to add it to the list. Let's silently bail out here. It probably grabs a non-matching PID anyway in this moment. Signed-off-by: Kai Krakow <kai@kaishome.de>
This commit is contained in:
parent
e6dd315123
commit
2a0c6e7098
@ -455,6 +455,8 @@ bool game_mode_context_register(GameModeContext *self, pid_t client)
|
||||
return false;
|
||||
}
|
||||
cl->executable = game_mode_context_find_exe(client);
|
||||
if (!cl->executable)
|
||||
goto error_cleanup;
|
||||
|
||||
if (game_mode_context_has_client(self, client)) {
|
||||
LOG_ERROR("Addition requested for already known process [%d]\n", client);
|
||||
|
Loading…
x
Reference in New Issue
Block a user