aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/QXmppStream.cpp')
-rw-r--r--source/QXmppStream.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/QXmppStream.cpp b/source/QXmppStream.cpp
index 960ab352..4edfc3b4 100644
--- a/source/QXmppStream.cpp
+++ b/source/QXmppStream.cpp
@@ -910,6 +910,7 @@ void QXmppStream::sendRosterRequest()
void QXmppStream::disconnect()
{
sendEndStream();
+ m_socket.flush();
m_socket.disconnectFromHost();
}