mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 02:10:17 +01:00
device: terminate the activation chain when entering the failed state
Device activation normally fails during one of the stages and in that case the activation chain is implicitly interrupted. But in some cases the device fails for external events (as a failure of master connection) while the activation sequence is still running and so we need to ensure that any pending activation source gets cleared upon entering the failed state. https://bugzilla.redhat.com/show_bug.cgi?id=1270814
This commit is contained in:
parent
faa44768c0
commit
c8e2339091
1 changed files with 8 additions and 0 deletions
|
|
@ -9268,6 +9268,14 @@ _set_state_full (NMDevice *self,
|
|||
self, NULL, NULL, NULL);
|
||||
break;
|
||||
case NM_DEVICE_STATE_FAILED:
|
||||
/* Usually upon failure the activation chain is interrupted in
|
||||
* one of the stages; but in some cases the device fails for
|
||||
* external events (as a failure of master connection) while
|
||||
* the activation sequence is running and so we need to ensure
|
||||
* that the chain is terminated here.
|
||||
*/
|
||||
_cancel_activation (self);
|
||||
|
||||
if (nm_device_uses_assumed_connection (self)) {
|
||||
/* Avoid tearing down assumed connection, assume it's connected */
|
||||
nm_device_queue_state (self,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue