From 4b69718072443186f44620e71642e412e5bd2782 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Thu, 26 Aug 2010 18:07:09 +0200 Subject: [PATCH] signal: Fix another "unknown signal" warning Signed-off-by: Uli Schlachter --- dbus.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dbus.c b/dbus.c index fd36e8ddb..862461606 100644 --- a/dbus.c +++ b/dbus.c @@ -397,8 +397,13 @@ a_dbus_process_request(DBusConnection *dbus_connection, DBusMessage *msg) nargs += a_dbus_message_iter(&iter); if(dbus_message_get_no_reply(msg)) + { + signal_t *sigfound = signal_array_getbyid(&dbus_signals, + a_strhash((const unsigned char *) NONULL(interface))); /* emit signals */ - signal_object_emit(globalconf.L, &dbus_signals, NONULL(interface), nargs); + if(sigfound) + signal_object_emit(globalconf.L, &dbus_signals, NONULL(interface), nargs); + } else { signal_t *sig = signal_array_getbyid(&dbus_signals,