mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 23:57:22 +02:00
Correct error message when the initial query fails
This commit is contained in:
parent
5e705f3225
commit
f0816230d7
@ -47,7 +47,7 @@ static int verify_gamemode_initial(void)
|
|||||||
{
|
{
|
||||||
int status = 0;
|
int status = 0;
|
||||||
|
|
||||||
if ((status = gamemode_query_status()) != 0) {
|
if ((status = gamemode_query_status()) != 0 && status != -1) {
|
||||||
fprintf(
|
fprintf(
|
||||||
stderr,
|
stderr,
|
||||||
"ERROR: gamemode is currently active, tests require gamemode to start deactivated!\n");
|
"ERROR: gamemode is currently active, tests require gamemode to start deactivated!\n");
|
||||||
@ -266,4 +266,4 @@ int game_mode_run_client_tests()
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user