From 807bfbbb8c0116314b8f1e41d580a8a5e8288350 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 20 May 2018 12:02:00 +0200 Subject: Flush before closing to make sure all data is written. Required on windows in resourceconfigtest. --- common/listener.cpp | 1 + 1 file changed, 1 insertion(+) 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() for (Client &client : m_connections) { if (client.socket) { disconnect(client.socket, nullptr, this, nullptr); + client.socket->flush(); client.socket->close(); delete client.socket; client.socket = nullptr; -- cgit v1.2.3