diff --git a/direct/src/autorestart/autorestart.c b/direct/src/autorestart/autorestart.c index fd42728fe2..e0fc366e9d 100644 --- a/direct/src/autorestart/autorestart.c +++ b/direct/src/autorestart/autorestart.c @@ -307,6 +307,7 @@ do_autorestart() { fprintf(stderr, "respawning too fast, giving up.\n"); break; } else { + num_sri = 1; /* reset num_sri */ fprintf(stderr, "respawning too fast, will sleep for %d seconds.\n", spam_restart_delay_time); signal (SIGALRM, sigalarm_handler); alarm(spam_restart_delay_time);