mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 05:58:01 +02:00
wifi: fix cancelling WPS during pending ProcessCredentials
When we cancel WPS, we must cancel the GCancellable. Otherwise,
ProcessCredentials will return and proceed with Start.
Fixes: 9bfb4f0d09
This commit is contained in:
parent
be3d897758
commit
6e5cc2b24f
1 changed files with 2 additions and 2 deletions
|
|
@ -866,8 +866,8 @@ _wps_start (NMSupplicantInterface *self,
|
||||||
_LOGT ("wps: cancel previous enrollment...");
|
_LOGT ("wps: cancel previous enrollment...");
|
||||||
|
|
||||||
data->is_cancelling = TRUE;
|
data->is_cancelling = TRUE;
|
||||||
if (!data->cancellable)
|
nm_clear_g_cancellable (&data->cancellable);
|
||||||
data->cancellable = g_cancellable_new ();
|
data->cancellable = g_cancellable_new ();
|
||||||
g_signal_handlers_disconnect_by_data (data->proxy, self);
|
g_signal_handlers_disconnect_by_data (data->proxy, self);
|
||||||
g_dbus_proxy_call (data->proxy,
|
g_dbus_proxy_call (data->proxy,
|
||||||
"Cancel",
|
"Cancel",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue