struct dccp_client *dc;
int ret;
- if (!FD_ISSET(listen_fd, rfds))
+ if (listen_fd < 0 || !FD_ISSET(listen_fd, rfds))
return;
ret = para_accept(listen_fd, NULL, 0);
if (ret < 0) {
s->client_cmds[SENDER_DELETE] = NULL;
self = s;
ret = dccp_open();
- if (ret < 0) {
+ if (ret < 0)
PARA_ERROR_LOG("%s\n", para_strerror(-ret));
- s->status = SENDER_OFF;
- } else
- s->status = SENDER_ON;
}