summaryrefslogtreecommitdiffstats
path: root/network/connection.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-05-06 21:46:05 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-05-06 21:46:05 +0000
commitd6f0804e827a829edb7faef9ddbd53332c1ad8cb (patch)
tree708d46b9dc0df0f6d481e038aa322dcedc9d82f1 /network/connection.c
parent0adb4e98f284a3d6c4b6bc11599a8fe0be980126 (diff)
Fix bug that prevent bnep interfaces to come up on reconnection.
Diffstat (limited to 'network/connection.c')
-rw-r--r--network/connection.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/network/connection.c b/network/connection.c
index 6025984d..18f79130 100644
--- a/network/connection.c
+++ b/network/connection.c
@@ -90,6 +90,7 @@ static gboolean bnep_watchdog_cb(GIOChannel *chan, GIOCondition cond,
DBUS_TYPE_INVALID);
}
info("%s disconnected", nc->dev);
+ bnep_if_down(nc->dev);
nc->state = DISCONNECTED;
memset(nc->dev, 0, 16);
strncpy(nc->dev, prefix, strlen(prefix));