summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-04-23 20:26:02 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-04-23 20:26:02 (GMT)
commitac8eb7c62838c7d85f451f2ee0f8456c14386137 (patch)
tree8b77da9045cf37c3de4bfd18ef004d30d26f38f0 /Swiften/Disco/ClientDiscoManager.cpp
parent4a8343171fd7717d61cb41b68055e32bc314503b (diff)
downloadswift-contrib-ac8eb7c62838c7d85f451f2ee0f8456c14386137.zip
swift-contrib-ac8eb7c62838c7d85f451f2ee0f8456c14386137.tar.bz2
Make sure setting disco info after reconnect does not immediately send presence.
Resolves: #976
Diffstat (limited to 'Swiften/Disco/ClientDiscoManager.cpp')
-rw-r--r--Swiften/Disco/ClientDiscoManager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swiften/Disco/ClientDiscoManager.cpp b/Swiften/Disco/ClientDiscoManager.cpp
index 99c0175..cca0144 100644
--- a/Swiften/Disco/ClientDiscoManager.cpp
+++ b/Swiften/Disco/ClientDiscoManager.cpp
@@ -36,4 +36,8 @@ void ClientDiscoManager::setDiscoInfo(const DiscoInfo& discoInfo) {
presenceSender->setPayload(capsInfo);
}
+void ClientDiscoManager::handleConnected() {
+ presenceSender->reset();
+}
+
}