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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58453
@ -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…
Reference in New Issue
Block a user