mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Optimized polling in TokenQueue
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7748 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
70009367da
commit
a8b08c9957
@ -105,7 +105,7 @@ void TokenQueue::queueRequest(uint32_t token, uint32_t basictype, uint32_t ansty
|
||||
if (mRequests.size() == 1)
|
||||
{
|
||||
/* start the timer */
|
||||
doPoll(0.1);
|
||||
doPoll(0.25);
|
||||
}
|
||||
}
|
||||
|
||||
@ -117,7 +117,7 @@ void TokenQueue::doPoll(float dt)
|
||||
|
||||
void TokenQueue::pollRequests()
|
||||
{
|
||||
double pollPeriod = 1.0; // max poll period.
|
||||
double pollPeriod = 0.5; // max poll period.
|
||||
|
||||
if (mRequests.empty()) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user