mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-15 04:22:27 -04:00
added Specific protected timer class RsProtectedTimer to avoid passwd deadlock.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6494 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c0cc792300
commit
e36557d542
4 changed files with 60 additions and 2 deletions
|
@ -22,6 +22,7 @@
|
|||
*/
|
||||
|
||||
#include "util/TokenQueue.h"
|
||||
#include "retroshare-gui/RsAutoUpdatePage.h"
|
||||
#include <iostream>
|
||||
|
||||
#include <QTimer>
|
||||
|
@ -118,6 +119,9 @@ void TokenQueue::doPoll(float dt)
|
|||
|
||||
void TokenQueue::pollRequests()
|
||||
{
|
||||
if(RsAutoUpdatePage::eventsLocked())
|
||||
return ;
|
||||
|
||||
double pollPeriod = 1.0; // max poll period.
|
||||
|
||||
if (mRequests.empty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue