From: David Herrmann Date: Thu, 23 Oct 2014 10:20:06 +0000 (+0200) Subject: connection: don't send DEAD-NOTIFICATIONS on sync SENDs X-Git-Tag: upstream/0.20141102.012929utc~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64d04a705fa9c731cdca440303fa52b8ab30f9a1;p=platform%2Fcore%2Fsystem%2Fkdbus-bus.git 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 --- 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);