aboutsummaryrefslogtreecommitdiff
path: root/daemon/Child.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/Child.cpp')
-rw-r--r--daemon/Child.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon/Child.cpp b/daemon/Child.cpp
index 286c7e7..c054076 100644
--- a/daemon/Child.cpp
+++ b/daemon/Child.cpp
@@ -55,6 +55,9 @@ void handleException() {
child->socket->receiveNBytes(&discard, 1);
}
+ // Ensure all data is flushed
+ child->socket->shutdownConnection();
+
// this indirectly calls close socket which will ensure the data has been sent
delete sender;
}