Indicate when message receiver does not exist

This commit is contained in:
Martin Pulec
2015-01-05 14:50:15 +01:00
parent 8d78aa6f03
commit 37d311cae9

View File

@@ -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);