From 7aa3ff73cab969ad5c400a7d8ff8dc2de4601622 Mon Sep 17 00:00:00 2001 From: Grzegorz Kolodziejczyk Date: Tue, 3 Mar 2015 17:59:45 +0100 Subject: [PATCH] android/pan: Fix removing PAN NAP bridge PAN NAP bridge shouldn't be removed if bnep server add fails. Pan device remove function is decreasing amount of connected devices, if count will be zero - NAP bridge will be removed. --- android/pan.c | 1 - 1 file changed, 1 deletion(-) diff --git a/android/pan.c b/android/pan.c index 972af89b8..511f4fdeb 100644 --- a/android/pan.c +++ b/android/pan.c @@ -517,7 +517,6 @@ static gboolean nap_setup_cb(GIOChannel *chan, GIOCondition cond, if (bnep_server_add(sk, dst_role, BNEP_BRIDGE, dev->iface, &dev->dst) < 0) { - nap_remove_bridge(); error("server_connadd failed"); rsp = BNEP_CONN_NOT_ALLOWED; goto failed; -- 2.47.3