diff --git a/Net/src/HTTPClientSession.cpp b/Net/src/HTTPClientSession.cpp index 336a6b617..49b8d58d6 100644 --- a/Net/src/HTTPClientSession.cpp +++ b/Net/src/HTTPClientSession.cpp @@ -354,13 +354,14 @@ int HTTPClientSession::write(const char* buffer, std::streamsize length) _reconnect = false; return rc; } - catch (NetException&) + catch (IOException&) { if (_reconnect) { close(); reconnect(); int rc = HTTPSession::write(buffer, length); + clearException(); _reconnect = false; return rc; }