Close UI sockets immediately from freeuidata.
[doldaconnect.git] / daemon / ui.c
index 9604a93..21f387e 100644 (file)
@@ -1548,6 +1548,7 @@ static void freeuidata(struct uidata *data)
        actives = data->next;
     data->sk->readcb = NULL;
     data->sk->errcb = NULL;
+    closesock(data->sk);
     putsock(data->sk);
     while((qcmd = unlinkqcmd(data)) != NULL)
        freequeuecmd(qcmd);