tools: suppress duplicate state change in deactivation step of active connection
Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
This commit is contained in:

committed by
Thomas Haller

parent
fbf3952274
commit
e27141fb90
@@ -1489,10 +1489,6 @@ class ActiveConnection(ExportedObj):
|
|||||||
|
|
||||||
def start_deactivation(self):
|
def start_deactivation(self):
|
||||||
assert self._deactivation_id is None
|
assert self._deactivation_id is None
|
||||||
self._set_state(
|
|
||||||
NM.ActiveConnectionState.DEACTIVATING,
|
|
||||||
NM.ActiveConnectionStateReason.USER_DISCONNECTED,
|
|
||||||
)
|
|
||||||
self.device.set_state(
|
self.device.set_state(
|
||||||
NM.DeviceState.DEACTIVATING, NM.DeviceStateReason.USER_REQUESTED
|
NM.DeviceState.DEACTIVATING, NM.DeviceStateReason.USER_REQUESTED
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user