Session check standarization (#5388)

Thanks to @Lemongrass3110
This commit is contained in:
Daegaladh
2021-01-14 15:57:30 +01:00
committed by GitHub
parent ae4e2b9cba
commit ecb4cc0a42
8 changed files with 66 additions and 70 deletions

View File

@@ -1733,7 +1733,7 @@ void send_shortlist_do_sends()
// If the session still exists, is not eof and has things left to
// be sent from it we'll re-add it to the shortlist.
if( session[fd] && !session[fd]->flag.eof && session[fd]->wdata_size )
if( session_isActive(fd) && session[fd]->wdata_size )
send_shortlist_add_fd(fd);
}
}