Cleanly remove the device FD from the event loop before closing it.
This commit is contained in:
parent
ed1d0878af
commit
f0885b8d2f
1 changed files with 2 additions and 0 deletions
|
@ -1117,6 +1117,8 @@ void close_network_connections(void) {
|
|||
for(int i = 0; i < 4; i++)
|
||||
free(envp[i]);
|
||||
|
||||
if (device_fd >= 0)
|
||||
io_del(&device_io);
|
||||
devops.close();
|
||||
|
||||
exit_control();
|
||||
|
|
Loading…
Reference in a new issue