Cleanup connection before detaching

This commit is contained in:
Mark Andrews 2020-09-17 15:18:27 +10:00
parent e24d73b9b3
commit c5c2a4820b

View file

@ -383,8 +383,8 @@ control_command(isc_task_t *task, isc_event_t *event) {
UNUSED(task);
if (listener->controls->shuttingdown) {
isc_nmhandle_detach(&conn->cmdhandle);
conn_cleanup(conn);
isc_nmhandle_detach(&conn->cmdhandle);
goto done;
}