roster done
diff --git a/chatdialog.h b/chatdialog.h
index dc7b390..902316f 100644
--- a/chatdialog.h
+++ b/chatdialog.h
@@ -1,7 +1,7 @@
 #ifndef CHATDIALOG_H
 #define CHATDIALOG_H
 #include <boost/function.hpp>
-#include <boost/thread/mutex.hpp>
+#include <boost/thread/recursive_mutex.hpp>
 #include <vector>
 #include "digesttreescene.h"
 #include "ui_chatdialog.h"
@@ -80,8 +80,8 @@
   Sync::SyncAppSocket *m_sock;
   uint32_t m_session;
   DigestTreeScene *m_scene;
-  boost::mutex m_msgMutex;
-  boost::mutex m_sceneMutex;
+  boost::recursive_mutex m_msgMutex;
+  boost::recursive_mutex m_sceneMutex;
   time_t m_lastMsgTime;
   int m_randomizedInterval;
   QTimer *m_timer;