mirror of
https://github.com/transmission/transmission
synced 2025-02-12 17:34:40 +00:00
(trunk gtk) #4554 "Transmission GTK client crashes on start" -- possible fix.
This commit is contained in:
parent
55c84fa9ea
commit
b645959eea
1 changed files with 3 additions and 2 deletions
|
@ -1401,9 +1401,10 @@ gtr_inhibit_hibernation( guint * cookie )
|
|||
NULL, G_DBUS_CALL_FLAGS_NONE,
|
||||
1000, NULL, &err );
|
||||
|
||||
*cookie = g_variant_get_uint32( g_variant_get_child_value( response, 0 ) );
|
||||
if( response != NULL )
|
||||
*cookie = g_variant_get_uint32( g_variant_get_child_value( response, 0 ) );
|
||||
|
||||
success = err == NULL;
|
||||
success = ( response != NULL ) && ( err == NULL );
|
||||
|
||||
/* logging */
|
||||
if( success )
|
||||
|
|
Loading…
Reference in a new issue