Don't try to empty a closed socket

This commit is contained in:
Con Kolivas 2014-06-14 11:08:16 +10:00
parent 258c7b0b9c
commit 1ab6280eac

View File

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