diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-03-05 21:09:26 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-03-05 21:09:26 +0100 |
commit | 43d4ac5427035dabcb23db487b4077f8510d3147 (patch) | |
tree | 38f76967ed98b0f5e5b13f731b127ba16ce74fc5 /bridge.c | |
parent | e30469d12b735f5789d664cb3e22a2a29a6aa619 (diff) |
bridge: fix removal of present bridge members
Diffstat (limited to 'bridge.c')
-rw-r--r-- | bridge.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -132,11 +132,12 @@ bridge_remove_member(struct bridge_member *bm) if (!bm->present) return; - bm->present = false; - bm->bst->n_present--; if (bst->dev.active) bridge_disable_member(bm); + bm->present = false; + bm->bst->n_present--; + bst->force_active = false; if (bst->n_present == 0) device_set_present(&bst->dev, false); |