commit | 400cc893b3894e4292edd0f8290a0c1b7113da91 | [log] [tgz] |
---|---|---|
author | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Tue Oct 09 12:31:51 2012 -0700 |
committer | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Tue Oct 09 12:31:51 2012 -0700 |
tree | 76a13d5058b261d07a4ccf7be48bb6d2a267e561 | |
parent | 7eb09d73436875ad2b24ed7a4276eb9be61921df [diff] |
wait 100ms before getLocalPrefix
diff --git a/chatdialog.cpp b/chatdialog.cpp index 464ac91..2ade4bf 100644 --- a/chatdialog.cpp +++ b/chatdialog.cpp
@@ -77,6 +77,7 @@ Sync::CcnxWrapperPtr handle = Sync::CcnxWrapper::Create(); handle->setInterestFilter(m_user.getPrefix().toStdString(), bind(&ChatDialog::respondHistoryRequest, this, _1)); //QTimer::singleShot(100, this, SLOT(getLocalPrefix())); + usleep(100000); if (!getLocalPrefix()) { // if getLocalPrefix indicates no prefix change