commit | 3859e197522c58d9ab618d34177cdec01ab997bd | [log] [tgz] |
---|---|---|
author | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Fri Sep 28 14:04:26 2012 -0700 |
committer | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Fri Sep 28 14:04:26 2012 -0700 |
tree | d4ab08b3122c941fc509de7e43082156abc371c4 | |
parent | 25e33e5350207f896d47d4338089a17dc05d4d3b [diff] |
handle leave glitch
diff --git a/chatdialog.cpp b/chatdialog.cpp index 0570985..065986e 100644 --- a/chatdialog.cpp +++ b/chatdialog.cpp
@@ -89,9 +89,9 @@ formHelloMessage(msg); msg.set_type(SyncDemo::ChatMessage::LEAVE); sendMsg(msg); - usleep(100000); + sleep(1); m_sock->remove(m_user.getPrefix().toStdString()); - usleep(100000); + sleep(1); #ifdef __DEBUG std::cout << "Sync REMOVE signal sent" << std::endl; #endif