Merge lp:~cjcurran/indicator-sound/sigabrt into lp:~indicator-applet-developers/indicator-sound/trunk_3
Proposed by
Conor Curran
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 234 | ||||
Proposed branch: | lp:~cjcurran/indicator-sound/sigabrt | ||||
Merge into: | lp:~indicator-applet-developers/indicator-sound/trunk_3 | ||||
Diff against target: |
27 lines (+8/-2) 1 file modified
src/sound-service-dbus.c (+8/-2) |
||||
To merge this branch: | bzr merge lp:~cjcurran/indicator-sound/sigabrt | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mikkel Kamstrup Erlandsen (community) | Approve | ||
Review via email: mp+54848@code.launchpad.net |
Description of the change
Fixes the bug attached.
To post a comment you must log in.
8 + if (priv->connection == NULL || connection_ is_closed (priv->connection) == TRUE){ service_ dbus_update_ sound_state - connection no good !!");
9 + g_dbus_
10 + g_critical ("sound_
11 + return;
12 + }
13 +
If this occurs I think it's crucial for debugging to know which one of the two conditions happened?
Maybe like this instead:
+ if (priv->connection == NULL || g_dbus_ connection_ is_closed (priv->connection)) { service_ dbus_update_ sound_state - connection is %s !!",
+ g_critical ("sound_
+ connection == NULL? "NULL" : "closed");
+ return;
+ }
But no biggie. Approved.