aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/QXmppStream.cpp')
-rw-r--r--source/QXmppStream.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/QXmppStream.cpp b/source/QXmppStream.cpp
index c0102cdc..55c6d58c 100644
--- a/source/QXmppStream.cpp
+++ b/source/QXmppStream.cpp
@@ -139,6 +139,9 @@ void QXmppStream::connect()
log(QString("Connecting to: %1:%2").arg(getConfiguration().
getHost()).arg(getConfiguration().getPort()));
+ // prepare for connection
+ m_authStep = 0;
+
m_socket.setProxy(getConfiguration().getNetworkProxy());
m_socket.connectToHost(getConfiguration().
getHost(), getConfiguration().getPort());
@@ -940,6 +943,7 @@ void QXmppStream::sendRosterRequest()
void QXmppStream::disconnect()
{
+ m_authStep = 0;
sendEndStream();
m_socket.flush();
m_socket.disconnectFromHost();