summaryrefslogtreecommitdiffstats
path: root/serial
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-10-01 13:40:04 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-10-01 13:40:04 +0000
commitcb274f87d6246eb943cd388965e3afe371ed612b (patch)
tree7a93512db31ece6e3c5435617587b21e44849a7a /serial
parent76a68c90d5d03c4e037ef00562e0fa907fdccf92 (diff)
serial: removed invalid fd warning
Diffstat (limited to 'serial')
-rw-r--r--serial/manager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/serial/manager.c b/serial/manager.c
index ec06ac0e..ba9ef112 100644
--- a/serial/manager.c
+++ b/serial/manager.c
@@ -449,6 +449,8 @@ static int rfcomm_connect(struct pending_connect *pc)
if (!(errno == EAGAIN || errno == EINPROGRESS)) {
error("connect() failed: %s (%d)",
strerror(errno), errno);
+ g_io_channel_unref(pc->io);
+ pc->io = NULL;
goto fail;
}