vpn: fix crash when VPN service times-out to start

Previously, we took a reference when scheduling _daemon_exec_timeout().
That was changed, but we still wrongly unref'ed the VPN connection
on timeout.

Related: https://bugzilla.gnome.org/show_bug.cgi?id=766307

Fixes: 6c12f04e87
This commit is contained in:
Thomas Haller 2016-05-12 12:58:46 +02:00
parent f1dc3e0cf8
commit 1ec5e0b958

View file

@ -1916,9 +1916,6 @@ _daemon_exec_timeout (gpointer data)
_LOGW ("Timed out waiting for the service to start");
priv->start_timeout = 0;
nm_vpn_connection_disconnect (self, NM_VPN_CONNECTION_STATE_REASON_SERVICE_START_TIMEOUT, FALSE);
g_object_unref (self);
return G_SOURCE_REMOVE;
}