Failsafe should only trigger is the new timeout is also zero.
This is what I get for rushing!
This commit is contained in:
parent
f061a78a18
commit
ba875d4b2e
@ -411,7 +411,7 @@ static void do_ndhc_work(void)
|
||||
timeout = 0;
|
||||
|
||||
// Failsafe to prevent busy-spin.
|
||||
if (prev_timeout == 0 && !had_event)
|
||||
if (timeout == 0 && prev_timeout == 0 && !had_event)
|
||||
timeout = 10000;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user