Skip to content

Commit

Permalink
Handling fast connection close
Browse files Browse the repository at this point in the history
  • Loading branch information
hyades committed Jan 16, 2015
1 parent 67133aa commit 948d4c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/gstswitchcontroller.c
Expand Up @@ -570,6 +570,10 @@ gst_switch_controller_call_client (GstSwitchController * controller,
break;
}

if (G_IS_DBUS_CONNECTION (connection) == 0) {
return NULL;
}

value = g_dbus_connection_call_sync (connection, NULL, /* bus_name */
path, name, method_name, parameters, reply_type, G_DBUS_CALL_FLAGS_NONE, gst_switch_controller_dbus_timeout, /* timeout_msec */
NULL /* TODO: cancellable */ ,
Expand Down

0 comments on commit 948d4c9

Please sign in to comment.