mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
Fixed deadlock in saving chat messages with an own avatar.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3520 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ad9f981ab0
commit
c12ec062a2
1 changed files with 2 additions and 2 deletions
|
@ -955,8 +955,6 @@ std::list<RsItem*> p3ChatService::saveList(bool& cleanup)
|
|||
{
|
||||
cleanup = true;
|
||||
|
||||
mChatMtx.lock(); /****** MUTEX LOCKED *******/
|
||||
|
||||
/* now we create a pqistore, and stream all the msgs into it */
|
||||
|
||||
std::list<RsItem*> list ;
|
||||
|
@ -969,6 +967,8 @@ std::list<RsItem*> p3ChatService::saveList(bool& cleanup)
|
|||
list.push_back(ci) ;
|
||||
}
|
||||
|
||||
mChatMtx.lock(); /****** MUTEX LOCKED *******/
|
||||
|
||||
RsChatStatusItem *di = new RsChatStatusItem ;
|
||||
di->status_string = _custom_status_string ;
|
||||
di->flags = RS_CHAT_FLAG_CUSTOM_STATE ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue