Blame SOURCES/0026-sbus-do-not-try-to-remove-signal-listeners-when-disc.patch

71e593
From 6c90ff0c0f8e4dce2d80cad8a042b2658bf68205 Mon Sep 17 00:00:00 2001
71e593
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
71e593
Date: Wed, 12 Sep 2018 13:22:34 +0200
71e593
Subject: [PATCH 26/28] sbus: do not try to remove signal listeners when
71e593
 disconnecting
71e593
71e593
This may cause some troubles if the dbus connection was dropped
71e593
as dbus will try to actually send the messages. Also when the
71e593
connectin is being freed, tevent integration is already disabled
71e593
so there is no point in doing this.
71e593
71e593
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
71e593
(cherry picked from commit b821ee3ca93beb94a7a9b22b6f7a205e4900212e)
71e593
---
71e593
 src/sbus/router/sbus_router_hash.c | 4 ++++
71e593
 1 file changed, 4 insertions(+)
71e593
71e593
diff --git a/src/sbus/router/sbus_router_hash.c b/src/sbus/router/sbus_router_hash.c
71e593
index 186dc613fc7874bfcce3f832c1c2299a217381d9..2d407b2fba12b6b57eed896e7154f85b0a65dcde 100644
71e593
--- a/src/sbus/router/sbus_router_hash.c
71e593
+++ b/src/sbus/router/sbus_router_hash.c
71e593
@@ -384,6 +384,10 @@ sbus_router_listeners_delete_cb(hash_entry_t *item,
71e593
         return;
71e593
     }
71e593
71e593
+    if (conn->disconnecting) {
71e593
+        return;
71e593
+    }
71e593
+
71e593
     /* If we still have the D-Bus connection available, we try to unregister
71e593
      * the previously registered listener when its removed from table. */
71e593
71e593
--
71e593
2.14.4