diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-03-25 11:57:30 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-03-25 11:57:30 +0000 |
commit | a57a6676ab26d0aca2d92115491044e6ae2251af (patch) | |
tree | c50835dbb98a73548b5edde7a0996eeaf186ad3b /src | |
parent | 4b955bef19d6a40d9da19a64ff4d0889ae3135a9 (diff) | |
parent | e1da450841a9a01883422dc1ff249ef3863eaee8 (diff) | |
download | ayatana-indicator-sound-a57a6676ab26d0aca2d92115491044e6ae2251af.tar.gz ayatana-indicator-sound-a57a6676ab26d0aca2d92115491044e6ae2251af.tar.bz2 ayatana-indicator-sound-a57a6676ab26d0aca2d92115491044e6ae2251af.zip |
fix that silly sigabrt
Diffstat (limited to 'src')
-rw-r--r-- | src/sound-service-dbus.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/sound-service-dbus.c b/src/sound-service-dbus.c index 1b9d29e..dc1fd94 100644 --- a/src/sound-service-dbus.c +++ b/src/sound-service-dbus.c @@ -237,6 +237,13 @@ sound_service_dbus_update_sound_state (SoundServiceDbus* self, GError * error = NULL; + if (priv->connection == NULL || + g_dbus_connection_is_closed (priv->connection) == TRUE){ + g_critical ("sound_service_dbus_update_sound_state - connection is %s !!", + priv->connection == NULL? "NULL" : "closed"); + return; + } + g_debug ("emitting state signal with value %i", (int)new_state); g_dbus_connection_emit_signal( priv->connection, NULL, @@ -246,9 +253,8 @@ sound_service_dbus_update_sound_state (SoundServiceDbus* self, v_output, &error ); if (error != NULL) { - g_error("Unable to emit signal 'sinkinputwhilemuted' because : %s", error->message); + g_critical ("Unable to emit signal because : %s", error->message); g_error_free(error); - return; } } |