diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-10-01 13:40:04 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-10-01 13:40:04 +0000 |
commit | cb274f87d6246eb943cd388965e3afe371ed612b (patch) | |
tree | 7a93512db31ece6e3c5435617587b21e44849a7a /serial | |
parent | 76a68c90d5d03c4e037ef00562e0fa907fdccf92 (diff) |
serial: removed invalid fd warning
Diffstat (limited to 'serial')
-rw-r--r-- | serial/manager.c | 2 |
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; } |