core: fix removal of killswitches on udev events
This commit is contained in:
@@ -237,9 +237,8 @@ rfkill_remove (NMUdevManager *self,
|
|||||||
|
|
||||||
if (!strcmp (ks->name, name)) {
|
if (!strcmp (ks->name, name)) {
|
||||||
nm_info ("Radio killswitch %s disappeared", ks->path);
|
nm_info ("Radio killswitch %s disappeared", ks->path);
|
||||||
priv->killswitches = g_slist_remove (priv->killswitches, iter);
|
priv->killswitches = g_slist_remove (priv->killswitches, ks);
|
||||||
killswitch_destroy (iter->data);
|
killswitch_destroy (ks);
|
||||||
g_slist_free (iter);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user