Don't try to empty a closed socket
This commit is contained in:
parent
258c7b0b9c
commit
1ab6280eac
@ -482,6 +482,9 @@ void empty_socket(int fd)
|
||||
{
|
||||
int ret;
|
||||
|
||||
if (fd < 1)
|
||||
return;
|
||||
|
||||
do {
|
||||
char buf[PAGESIZE];
|
||||
tv_t timeout = {0, 0};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user