Browse Source

Correct double invalid in error message, and actually skip out on the renice

Marc Di Luzio 6 years ago
parent
commit
5b55506050
1 changed files with 2 additions and 1 deletions
  1. 2 1
      daemon/gamemode-sched.c

+ 2 - 1
daemon/gamemode-sched.c

@@ -69,7 +69,8 @@ void game_mode_apply_renice(const GameModeContext *self, const pid_t client)
 	long int renice = 0;
 	config_get_renice_value(config, &renice);
 	if ((renice < 1) || (renice > 20)) {
-		LOG_ONCE(ERROR, "Invalid renice value '%ld' is invalid, will not renice.\n", renice);
+		LOG_ONCE(ERROR, "Configured renice value '%ld' is invalid, will not renice.\n", renice);
+		return;
 	} else {
 		renice = -renice;
 	}