signal: Fix another "unknown signal" warning

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2010-08-26 18:07:09 +02:00
parent f89252962e
commit 4b69718072
1 changed files with 6 additions and 1 deletions

5
dbus.c
View File

@ -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 */
if(sigfound)
signal_object_emit(globalconf.L, &dbus_signals, NONULL(interface), nargs);
}
else
{
signal_t *sig = signal_array_getbyid(&dbus_signals,