diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-05-20 12:02:00 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-05-20 13:28:37 +0200 |
commit | 807bfbbb8c0116314b8f1e41d580a8a5e8288350 (patch) | |
tree | 055cade2ada08010f9ccf5ec835b4035397a4d84 | |
parent | aefb0ad3288fb021d821d69a8425aff0c7531328 (diff) | |
download | sink-807bfbbb8c0116314b8f1e41d580a8a5e8288350.tar.gz sink-807bfbbb8c0116314b8f1e41d580a8a5e8288350.zip |
Flush before closing to make sure all data is written.
Required on windows in resourceconfigtest.
-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; |