Close UI sockets immediately from freeuidata.
authorFredrik Tolf <fredrik@dolda2000.com>
Wed, 13 Feb 2008 04:01:18 +0000 (05:01 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Wed, 13 Feb 2008 04:01:18 +0000 (05:01 +0100)
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);