|
@@ -3893,7 +3893,7 @@ static void *submit_work_thread(void *userdata)
|
|
|
|
|
|
|
|
for (swsp = &write_sws; (sws = *swsp); ) {
|
|
for (swsp = &write_sws; (sws = *swsp); ) {
|
|
|
int fd = sws->work->pool->sock;
|
|
int fd = sws->work->pool->sock;
|
|
|
- if (!FD_ISSET(fd, &wfds)) {
|
|
|
|
|
|
|
+ if (fd == -1 || !FD_ISSET(fd, &wfds)) {
|
|
|
swsp = &sws->next;
|
|
swsp = &sws->next;
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|