aboutsummaryrefslogtreecommitdiff
path: root/src/protocols/gopherclient.cpp
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2021-02-18 18:40:46 +1100
committerFelix Queißner <felix@ib-queissner.de>2021-02-18 11:23:23 +0100
commit415a5bd7b8288316b52338f359f5cd1280eff0bd (patch)
tree4c6d51c428eadcd01a52ed869987c1634e8cd300 /src/protocols/gopherclient.cpp
parent6e127eb49d6a71e4d05cbb2e29fc164e718a903c (diff)
downloadkristall-415a5bd7b8288316b52338f359f5cd1280eff0bd.tar.gz
Continuation of #134
Diffstat (limited to 'src/protocols/gopherclient.cpp')
-rw-r--r--src/protocols/gopherclient.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocols/gopherclient.cpp b/src/protocols/gopherclient.cpp
index a55ae0c..4af6605 100644
--- a/src/protocols/gopherclient.cpp
+++ b/src/protocols/gopherclient.cpp
@@ -127,8 +127,8 @@ void GopherClient::on_socketError(QAbstractSocket::SocketError error_code)
// This is more sane then erroring out here as it's a perfectly legal
// state and we know the connection has ended.
if (error_code == QAbstractSocket::RemoteHostClosedError) {
+ socket.close();
return;
- } else {
- this->emitNetworkError(error_code, socket.errorString());
}
+ this->emitNetworkError(error_code, socket.errorString());
}