cancel sources
authorLove Hornquist Astrand <lha@h5l.org>
Wed, 8 Sep 2010 16:45:40 +0000 (09:45 -0700)
committerLove Hornquist Astrand <lha@h5l.org>
Wed, 8 Sep 2010 16:45:40 +0000 (09:45 -0700)
lib/ipc/server.c

index 7fa134c1cbb5199dc5ef3fa67e804a93b6a1f68f..e2f771cf05f5126365c0b5229f8ce243f035820e 100644 (file)
@@ -550,12 +550,12 @@ maybe_close(struct client *c)
        return 0;
 
 #ifdef HAVE_GCD
-    dispatch_cancel(c->in);
+    dispatch_source_cancel(c->in);
     if ((c->flags & WAITING_READ) == 0)
        dispatch_resume(c->in);
     dispatch_release(c->in);
 
-    dispatch_cancel(c->out);
+    dispatch_source_cancel(c->out);
     if ((c->flags & WAITING_WRITE) == 0)
        dispatch_resume(c->out);
     dispatch_release(c->out);