From 415a5bd7b8288316b52338f359f5cd1280eff0bd Mon Sep 17 00:00:00 2001 From: Mike Skec Date: Thu, 18 Feb 2021 18:40:46 +1100 Subject: Continuation of #134 --- src/protocols/fingerclient.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/protocols/fingerclient.cpp') diff --git a/src/protocols/fingerclient.cpp b/src/protocols/fingerclient.cpp index ee62ce1..e7b6c0d 100644 --- a/src/protocols/fingerclient.cpp +++ b/src/protocols/fingerclient.cpp @@ -94,5 +94,10 @@ void FingerClient::on_finished() void FingerClient::on_socketError(QAbstractSocket::SocketError error_code) { + // Same as GopherClient::on_SocketError. See there for explanation + if (error_code == QAbstractSocket::RemoteHostClosedError) { + socket.close(); + return; + } this->emitNetworkError(error_code, socket.errorString()); } -- cgit v1.2.3