Tag sockets to be closed on exceptions.

Possibly related to cool#9349

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: Iae249bdf50825d0669c801951bfba827ac6e5581
This commit is contained in:
Michael Meeks 2024-07-12 21:46:18 +01:00 committed by Caolán McNamara
parent 5905e21fe2
commit c65671d02a

View file

@ -1387,10 +1387,12 @@ protected:
catch (const std::exception& exception) catch (const std::exception& exception)
{ {
LOG_ERR("Error during handleIncomingMessage: " << exception.what()); LOG_ERR("Error during handleIncomingMessage: " << exception.what());
disposition.setClosed();
} }
catch (...) catch (...)
{ {
LOG_ERR("Error during handleIncomingMessage."); LOG_ERR("Error during handleIncomingMessage.");
disposition.setClosed();
} }
if (disposition.isMove() || disposition.isTransfer()) if (disposition.isMove() || disposition.isTransfer())