Stop looping when scheduler receives an AppExit (#536)
This commit is contained in:
parent
74dba5f36b
commit
fd1d6a388d
@ -94,10 +94,8 @@ impl Plugin for ScheduleRunnerPlugin {
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
{
|
||||
loop {
|
||||
if let Some(delay) = tick(&mut app, wait) {
|
||||
thread::sleep(delay);
|
||||
}
|
||||
while let Some(delay) = tick(&mut app, wait) {
|
||||
thread::sleep(delay);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user