aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppReconnectionManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/QXmppReconnectionManager.cpp')
-rw-r--r--source/QXmppReconnectionManager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/QXmppReconnectionManager.cpp b/source/QXmppReconnectionManager.cpp
index 8c0fbaa8..65557811 100644
--- a/source/QXmppReconnectionManager.cpp
+++ b/source/QXmppReconnectionManager.cpp
@@ -62,6 +62,11 @@ void QXmppReconnectionManager::error(QXmppClient::Error error)
m_timer.start(time*1000);
emit reconnectingIn(time);
}
+ else if (m_client && error == QXmppClient::KeepAliveError)
+ {
+ // if we got a keepalive error, reconnect in one second
+ m_timer.start(1000);
+ }
}
int QXmppReconnectionManager::getNextReconnectingInTime()