Commit a8be66fa authored by Ray Strode's avatar Ray Strode

client: don't try to access client after it's vanished

After we emit the disconnected signal on the client it's likely
to get freed, so don't try to use it from that point forward.
parent c3484fb5
......@@ -225,9 +225,11 @@ on_client_vanished (GDBusConnection *connection,
gpointer user_data)
GsmDBusClient *client = user_data;
gsm_client_disconnected (GSM_CLIENT (client));
g_bus_unwatch_name (client->priv->watch_id);
client->priv->watch_id = 0;
gsm_client_disconnected (GSM_CLIENT (client));
static void
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment