From 64d04a705fa9c731cdca440303fa52b8ab30f9a1 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Thu, 23 Oct 2014 12:20:06 +0200 Subject: [PATCH] connection: don't send DEAD-NOTIFICATIONS on sync SENDs If we synchronously send messages, we never queue notifications on the sender if a timeout or reset occurs. Fix the DEAD_DESTINATION handling to not queue such messages either. Signed-off-by: David Herrmann --- connection.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/connection.c b/connection.c index 52c4d9b..60a3841 100644 --- a/connection.c +++ b/connection.c @@ -251,11 +251,10 @@ int kdbus_cmd_msg_recv(struct kdbus_conn *conn, } else { list_del_init(&entry->reply->entry); kdbus_conn_reply_free(entry->reply); + kdbus_notify_reply_dead(conn->bus, + entry->src_id, + entry->cookie); } - - kdbus_notify_reply_dead(conn->bus, - entry->src_id, - entry->cookie); } kdbus_queue_entry_remove(conn, entry); -- 2.34.1