From 37d311cae9fe67eb76c285d2fdbbb7959a37eb43 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Mon, 5 Jan 2015 14:50:15 +0100 Subject: [PATCH] Indicate when message receiver does not exist --- src/messaging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messaging.cpp b/src/messaging.cpp index fa4654e29..77c8642c2 100644 --- a/src/messaging.cpp +++ b/src/messaging.cpp @@ -47,7 +47,7 @@ struct response *send_message(struct module *root, const char *const_path, struc pthread_mutex_unlock(&old_receiver->lock); free(tmp); - return new_response(RESPONSE_ACCEPTED, NULL); + return new_response(RESPONSE_ACCEPTED, strdup("(receiver not yet exists)")); } pthread_mutex_lock(&receiver->lock); pthread_mutex_unlock(&old_receiver->lock);