]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - afs.c
Implement chunk queing for the udp sender.
[paraslash.git] / afs.c
diff --git a/afs.c b/afs.c
index aa008f995c6d7aa8cc0b935c419810c81749613e..02b6b56db561d5a7ef2f9464dc2c1f1c54f35fec 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007-2008 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2007-2009 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -892,7 +892,7 @@ static int call_callback(int fd, int query_shmid)
        query.data = (char *)query_shm + sizeof(*cq);
        query.size = cq->query_size;
        cq->handler(fd, &query);
-       return 1;
+       return shm_detach(query_shm);
 }
 
 static int execute_server_command(void)