Browse Source

Don't try to empty a closed socket

master
Con Kolivas 11 years ago
parent
commit
1ab6280eac
  1. 3
      src/libckpool.c

3
src/libckpool.c

@ -482,6 +482,9 @@ void empty_socket(int fd)
{ {
int ret; int ret;
if (fd < 1)
return;
do { do {
char buf[PAGESIZE]; char buf[PAGESIZE];
tv_t timeout = {0, 0}; tv_t timeout = {0, 0};

Loading…
Cancel
Save