summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-09-28 13:20:35 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-09-28 13:20:35 +0000
commit536cb174ec2d4937bf14fee7d713018e1bb31404 (patch)
tree4b9446de31a6eeb5f3da191b5ab70c6216f008bf
parentb94d1033b7c6919ca4705cf11139fb8224c3ecde (diff)
Fix bridge removal on service exit.
-rw-r--r--network/manager.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/network/manager.c b/network/manager.c
index 6ca36955..5e1ab2f0 100644
--- a/network/manager.c
+++ b/network/manager.c
@@ -993,8 +993,14 @@ void network_exit(void)
connection = NULL;
- if (bridge_remove("pan0") < 0)
- error("Can't remove bridge");
+ if (bridge_remove(conf->server.panu_iface) < 0)
+ error("Can't remove PANU bridge");
+
+ if (bridge_remove(conf->server.gn_iface) < 0)
+ error("Can't remove GN bridge");
+
+ if (bridge_remove(conf->server.nap_iface) < 0)
+ error("Can't remove NAP bridge");
bnep_cleanup();
bridge_cleanup();