Attempt to not cause graceful shutdown too quickly

This commit is contained in:
Aram 🍐 2021-10-16 20:45:17 -04:00
parent a70e57ff1d
commit fa92c75497

View file

@ -420,7 +420,11 @@ async fn virtual_tcp_interface(
}
}
}
if !graceful_shutdown && !forceful_shutdown && !client_socket.is_active() {
if !graceful_shutdown
&& !forceful_shutdown
&& !client_socket.is_active()
&& !client_socket.can_recv()
{
// Graceful shutdown
client_socket.close();
trace!(