diff --git a/panels/network/net-device-bluetooth.c b/panels/network/net-device-bluetooth.c index 7dff45b29..303f4a8af 100644 --- a/panels/network/net-device-bluetooth.c +++ b/panels/network/net-device-bluetooth.c @@ -114,7 +114,7 @@ device_off_switch_changed_cb (NetDeviceBluetooth *self) for (i = 0; acs && i < acs->len; i++) { a = (NMActiveConnection*)acs->pdata[i]; if (strcmp (nm_active_connection_get_uuid (a), uuid) == 0) { - nm_client_deactivate_connection (self->client, a, NULL, NULL); + nm_client_deactivate_connection_async (self->client, a, NULL, NULL, NULL); break; } } diff --git a/panels/network/net-device-mobile.c b/panels/network/net-device-mobile.c index 46604934c..2c4012c35 100644 --- a/panels/network/net-device-mobile.c +++ b/panels/network/net-device-mobile.c @@ -504,7 +504,7 @@ device_off_switch_changed_cb (NetDeviceMobile *self) for (i = 0; acs && i < acs->len; i++) { a = (NMActiveConnection*)acs->pdata[i]; if (strcmp (nm_active_connection_get_uuid (a), uuid) == 0) { - nm_client_deactivate_connection (self->client, a, NULL, NULL); + nm_client_deactivate_connection_async (self->client, a, NULL, NULL, NULL); break; } } diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c index 4e9d66ad8..0a79016e9 100644 --- a/panels/network/net-device-wifi.c +++ b/panels/network/net-device-wifi.c @@ -743,7 +743,7 @@ stop_shared_connection (NetDeviceWifi *self) devices = nm_active_connection_get_devices (c); if (devices && devices->pdata[0] == self->device) { - nm_client_deactivate_connection (self->client, c, NULL, NULL); + nm_client_deactivate_connection_async (self->client, c, NULL, NULL, NULL); found = TRUE; break; } diff --git a/panels/network/net-vpn.c b/panels/network/net-vpn.c index 1bbdcefb3..fad5e2019 100644 --- a/panels/network/net-vpn.c +++ b/panels/network/net-vpn.c @@ -127,7 +127,7 @@ device_off_toggled (NetVpn *self) for (i = 0; acs && i < acs->len; i++) { a = (NMActiveConnection*)acs->pdata[i]; if (strcmp (nm_active_connection_get_uuid (a), uuid) == 0) { - nm_client_deactivate_connection (self->client, a, NULL, NULL); + nm_client_deactivate_connection_async (self->client, a, NULL, NULL, NULL); break; } }