diff options
Diffstat (limited to 'hcid/dbus-rfcomm.c')
-rw-r--r-- | hcid/dbus-rfcomm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hcid/dbus-rfcomm.c b/hcid/dbus-rfcomm.c index 8142b227..bf5c2fbf 100644 --- a/hcid/dbus-rfcomm.c +++ b/hcid/dbus-rfcomm.c @@ -258,6 +258,11 @@ static gboolean rfcomm_connect_cb_continue(void *data) struct rfcomm_node *node = c->node; int fd; + if (c->canceled) { + error_connect_canceled(c->conn, c->msg); + goto failed; + } + fd = open(node->name, O_RDONLY | O_NOCTTY); if (fd < 0) { if (++c->ntries >= MAX_OPEN_TRIES) { |