aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-05-19 01:38:56 +0200
committerMattias Andrée <maandree@operamail.com>2014-05-19 01:38:56 +0200
commit1a72bb565a53cdb741206ab2fad7ca6a88aeeedc (patch)
tree5ca481473070428d6b94853b84e47a780e9c594a /src
parentFix memory leak (diff)
downloadmds-1a72bb565a53cdb741206ab2fad7ca6a88aeeedc.tar.gz
mds-1a72bb565a53cdb741206ab2fad7ca6a88aeeedc.tar.bz2
mds-1a72bb565a53cdb741206ab2fad7ca6a88aeeedc.tar.xz
Do not just queue "Client close" message, but also send it
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/mds-server/mds-server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mds-server/mds-server.c b/src/mds-server/mds-server.c
index 4eefe31..0ad7736 100644
--- a/src/mds-server/mds-server.c
+++ b/src/mds-server/mds-server.c
@@ -284,7 +284,7 @@ void* slave_loop(void* data)
/* Multicast information about the client closing. */
- n = 2 * 10 + 1 + strlen("Client closed: :\n\n"); /* FIXME: why is this not received? */
+ n = 2 * 10 + 1 + strlen("Client closed: :\n\n");
fail_if (xmalloc(msgbuf, n, char));
snprintf(msgbuf, n,
"Client closed: %" PRIu32 ":%" PRIu32 "\n"
@@ -294,6 +294,7 @@ void* slave_loop(void* data)
n = strlen(msgbuf);
queue_message_multicast(msgbuf, n, information);
msgbuf = NULL;
+ send_multicast_queue(information);
terminate: /* This done on success as well. */