Abandon the socket properly when freeing a DC hub.
authorFredrik Tolf <fredrik@dolda2000.com>
Mon, 20 Apr 2009 02:02:26 +0000 (04:02 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Mon, 20 Apr 2009 02:02:26 +0000 (04:02 +0200)
daemon/fnet-dc.c

index 36ddb14..a79a681 100644 (file)
@@ -3218,7 +3218,7 @@ static void hubdestroy(struct fnetnode *fn)
     struct qcommand *qcmd;
     
     hub = (struct dchub *)fn->data;
-    putsock(hub->sk);
+    quitsock(hub->sk);
     while((qcmd = ulqcmd(&hub->queue)) != NULL)
        freeqcmd(qcmd);
     if(hub->supports != NULL)