Failsafe should only trigger is the new timeout is also zero.

This is what I get for rushing!
This commit is contained in:
Nicholas J. Kain 2015-05-27 12:35:16 -04:00
parent f061a78a18
commit ba875d4b2e

View File

@ -411,7 +411,7 @@ static void do_ndhc_work(void)
timeout = 0; timeout = 0;
// Failsafe to prevent busy-spin. // Failsafe to prevent busy-spin.
if (prev_timeout == 0 && !had_event) if (timeout == 0 && prev_timeout == 0 && !had_event)
timeout = 10000; timeout = 10000;
} }
} }