From 7519ca9bd37a600032862d72692ccb7f78a25b67 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 14 May 2014 07:56:30 +0200 Subject: Do not echo back messages to the sender MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-server/mds-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mds-server/mds-server.c b/src/mds-server/mds-server.c index c0e4ea0..d0757fd 100644 --- a/src/mds-server/mds-server.c +++ b/src/mds-server/mds-server.c @@ -1198,7 +1198,7 @@ void queue_message_multicast(char* message, size_t length, client_t* sender) /* Look for a matching condition. */ n = client->interception_conditions_count; - if (client->open) + if (client->open && (client != sender)) { with_mutex(mutex, if (errno || (client->open == 0)) -- cgit v1.2.3-70-g09d2