Commit a5feb44a authored by Lubomir Rintel's avatar Lubomir Rintel 🥕
Browse files

libnm,vpn-service-plugin: remove old connect timer when adding new one

If the plugin didn't succeed connecting once, don't let the old timer fire
during a subsequent connection.
parent 842889bc
......@@ -424,6 +424,7 @@ connect_timer_start (NMVpnServicePlugin *plugin)
NMVpnServicePluginPrivate *priv = NM_VPN_SERVICE_PLUGIN_GET_PRIVATE (plugin);
nm_clear_g_source (&priv->connect_timer);
priv->connect_timer = g_timeout_add_seconds (60, connect_timer_expired, plugin);
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