From: Felix Fietkau Date: Mon, 5 Mar 2012 20:09:26 +0000 (+0100) Subject: bridge: fix removal of present bridge members X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=43d4ac5427035dabcb23db487b4077f8510d3147;p=oweals%2Fnetifd.git bridge: fix removal of present bridge members --- diff --git a/bridge.c b/bridge.c index d3b2867..035619b 100644 --- a/bridge.c +++ b/bridge.c @@ -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);