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:
Frederic Martinsons
2021-06-15 13:01:49 +02:00
committed by Thomas Haller
parent fbf3952274
commit e27141fb90

View File

@@ -1489,10 +1489,6 @@ class ActiveConnection(ExportedObj):
def start_deactivation(self):
assert self._deactivation_id is None
self._set_state(
NM.ActiveConnectionState.DEACTIVATING,
NM.ActiveConnectionStateReason.USER_DISCONNECTED,
)
self.device.set_state(
NM.DeviceState.DEACTIVATING, NM.DeviceStateReason.USER_REQUESTED
)