From d78c8f2dce3e97c62e71e07a5f78f1289db1dd58 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Mon, 5 May 2008 21:17:30 +0000 Subject: serial: check if the owner exited in the RFCOMM connect callback --- serial/manager.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/serial/manager.c b/serial/manager.c index 631158c9..2bb1ce84 100644 --- a/serial/manager.c +++ b/serial/manager.c @@ -345,6 +345,10 @@ static void rfcomm_connect_cb(GIOChannel *chan, int err_cb, gpointer user_data) struct rfcomm_dev_req req; int sk, err, fd; + /* Owner exited? */ + if (!g_slist_find(pending_connects, pc)) + return; + if (pc->canceled) { error_canceled(pc->conn, pc->msg, "Connection canceled"); goto fail; -- cgit