Try flush write buffer only if it is initialized

Fixes #22579
This commit is contained in:
Nicolae Vartolomei 2021-04-04 12:59:51 +03:00
parent 7512227431
commit 49abdeb967

View File

@ -72,6 +72,7 @@ TCPHandler::~TCPHandler()
try
{
state.reset();
if (out)
out->next();
}
catch (...)