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.
This commit is contained in:
parent
18fe88933c
commit
090493863b
|
@ -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");
|
LOGP(DMNCC, LOGL_ERROR, "Failed to register new connection fd\n");
|
||||||
close(conn_bfd->fd);
|
close(conn_bfd->fd);
|
||||||
conn_bfd->fd = -1;
|
conn_bfd->fd = -1;
|
||||||
state->listen_bfd.when |= ~BSC_FD_READ;
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue