Update: when join, wait 500ms before sending join msg
diff --git a/chatdialog.cpp b/chatdialog.cpp
index 336447c..2299738 100644
--- a/chatdialog.cpp
+++ b/chatdialog.cpp
@@ -66,8 +66,10 @@
syncPrefix += m_user.getChatroom().toStdString();
try
{
- m_sock = new Sync::SyncAppSocket(syncPrefix, bind(&ChatDialog::processTreeUpdateWrapper, this, _1, _2), bind(&ChatDialog::processRemoveWrapper, this, _1));
- sendJoin();
+ m_sock = new Sync::SyncAppSocket(syncPrefix,
+ bind(&ChatDialog::processTreeUpdateWrapper, this, _1, _2),
+ bind(&ChatDialog::processRemoveWrapper, this, _1));
+ QTimer::singleShot(1000, this, SLOT(sendJoin()));
m_timer->start(FRESHNESS * 2000);
}
catch (Sync::CcnxOperationException ex)
@@ -656,7 +658,7 @@
try
{
m_sock = new Sync::SyncAppSocket(syncPrefix, bind(&ChatDialog::processTreeUpdateWrapper, this, _1, _2), bind(&ChatDialog::processRemoveWrapper, this, _1));
- sendJoin();
+ QTimer::singleShot(1000, this, SLOT(sendJoin()));
m_timer->start(FRESHNESS * 2000);
}
catch (Sync::CcnxOperationException ex)
diff --git a/sync b/sync
index 57f13f4..03ec7bf 160000
--- a/sync
+++ b/sync
@@ -1 +1 @@
-Subproject commit 57f13f49f6d5490b66de008ed72dd8d77acb44a6
+Subproject commit 03ec7bf65a1f1dd23f20fcb355f2740e58ec07ca