bridge: reset primary only after marking the member not present
authorAlex Oprea <alex.oprea@inteno.se>
Mon, 8 May 2017 14:30:13 +0000 (16:30 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 9 May 2017 10:51:03 +0000 (12:51 +0200)
commit20a1bac4810e98a463380e5d0f1f77c72ac31941
tree527207ed0d05e55af689d328cd41b118e538dc34
parent6b9c2673173f9636647e021a84d560c0863b1b99
bridge: reset primary only after marking the member not present

Run the bridge_reset_primary function only after the member being removed
has been marked as not present.
This change prevents the bridge_reset_primary function from choosing the
member being removed as the new primary member.

Signed-off-by: Alex Oprea <alex.oprea@inteno.se>
bridge.c