diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-04-12 20:14:51 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-04-12 20:14:51 +0200 |
commit | 090493863be62869c195272c912d345b81de73ad (patch) | |
tree | 1a8d4d9ae6734e8aa59d44f23baae624f1700531 | |
parent | 18fe88933c57d765f702293eeaa3a16a111af631 (diff) |
mncc: Do not permanently disable the listening socket in case of error
When we have no other MNCC connection but the registeration of the
new fd is failing we should not disable reading from the listen_fd
for ever as the situation might not be permanent.
-rw-r--r-- | openbsc/src/libmsc/mncc_sock.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/openbsc/src/libmsc/mncc_sock.c b/openbsc/src/libmsc/mncc_sock.c index 576ed017a..d709a72ca 100644 --- a/openbsc/src/libmsc/mncc_sock.c +++ b/openbsc/src/libmsc/mncc_sock.c @@ -239,7 +239,6 @@ static int mncc_sock_accept(struct bsc_fd *bfd, unsigned int flags) LOGP(DMNCC, LOGL_ERROR, "Failed to register new connection fd\n"); close(conn_bfd->fd); conn_bfd->fd = -1; - state->listen_bfd.when |= ~BSC_FD_READ; return -1; } |