From 28f14118a5c56252df803c364848acb25680a991 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 7 May 2014 18:29:40 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-server.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mds-server.c b/src/mds-server.c index 7bd79df..0dc6106 100644 --- a/src/mds-server.c +++ b/src/mds-server.c @@ -1054,6 +1054,11 @@ void multicast_message(char* message, size_t length) size_t sent; n = length; + /* Skip if the client has closed. */ + if (client->open == 0) + continue; + + /* Send the message. */ with_mutex(client->mutex, while (n > 0) { @@ -1068,6 +1073,7 @@ void multicast_message(char* message, size_t length) } ); + /* Wait for a reply. */ if ((n > 0) && client_.modifying) { /* TODO */ -- cgit v1.2.3-70-g09d2