summaryrefslogtreecommitdiffstats
path: root/serial
diff options
context:
space:
mode:
Diffstat (limited to 'serial')
-rw-r--r--serial/manager.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/serial/manager.c b/serial/manager.c
index c57e5eb1..cafe8590 100644
--- a/serial/manager.c
+++ b/serial/manager.c
@@ -263,6 +263,7 @@ static void open_notify(int fd, int err, void *data)
if (err) {
/* Max tries exceeded */
+ rfcomm_release(pc->id);
err_connection_failed(pc->conn, pc->msg, strerror(err));
return;
}