Call bundle_CleanDatalinks() after UpdateSet() in case we're
dropping out of background/foreground/direct mode. This avoids either having to wait for the redial timer before exiting or jaming up in select() waiting for something that'll never happen.
This commit is contained in:
parent
333aa64d05
commit
0cd8e9020a
@ -519,6 +519,7 @@ DoLoop(struct bundle *bundle)
|
||||
/* All our prompts and the diagnostic socket */
|
||||
descriptor_UpdateSet(&server.desc, &rfds, NULL, NULL, &nfds);
|
||||
|
||||
bundle_CleanDatalinks(bundle);
|
||||
if (bundle_IsDead(bundle))
|
||||
/* Don't select - we'll be here forever */
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user