diff options
Diffstat (limited to 'common/listener.cpp')
-rw-r--r-- | common/listener.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/listener.cpp b/common/listener.cpp index b9426db..ffc25c8 100644 --- a/common/listener.cpp +++ b/common/listener.cpp | |||
@@ -124,6 +124,7 @@ void Listener::closeAllConnections() | |||
124 | for (Client &client : m_connections) { | 124 | for (Client &client : m_connections) { |
125 | if (client.socket) { | 125 | if (client.socket) { |
126 | disconnect(client.socket, nullptr, this, nullptr); | 126 | disconnect(client.socket, nullptr, this, nullptr); |
127 | client.socket->flush(); | ||
127 | client.socket->close(); | 128 | client.socket->close(); |
128 | delete client.socket; | 129 | delete client.socket; |
129 | client.socket = nullptr; | 130 | client.socket = nullptr; |