diff options
| author | Mike Skec <skec@protonmail.ch> | 2021-02-18 18:40:46 +1100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-02-18 11:23:23 +0100 |
| commit | 415a5bd7b8288316b52338f359f5cd1280eff0bd (patch) | |
| tree | 4c6d51c428eadcd01a52ed869987c1634e8cd300 /src/protocols/fingerclient.cpp | |
| parent | 6e127eb49d6a71e4d05cbb2e29fc164e718a903c (diff) | |
| download | kristall-415a5bd7b8288316b52338f359f5cd1280eff0bd.tar.gz | |
Continuation of #134
Diffstat (limited to 'src/protocols/fingerclient.cpp')
| -rw-r--r-- | src/protocols/fingerclient.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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()); } |
