mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-30 03:21:34 -04:00
* Memory Leak fixed in BinaryData.
* Fixed up Variable Ticking -> max = 1.0 sec now. * Removed debug output which was massively increasing CPU load. * Removed some old code from p3face-server.cc git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@461 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d69c2f72f1
commit
99aab9cea4
7 changed files with 81 additions and 36 deletions
|
@ -31,6 +31,9 @@
|
|||
|
||||
const int pqipersongrpzone = 354;
|
||||
|
||||
/****
|
||||
#define DEBUG_TICK 1
|
||||
****/
|
||||
|
||||
// handle the tunnel services.
|
||||
int pqipersongrp::tickServiceRecv()
|
||||
|
@ -108,13 +111,32 @@ int pqipersongrp::tick()
|
|||
}
|
||||
int i = 0;
|
||||
|
||||
if (tickServiceSend()) i = 1;
|
||||
if (tickServiceSend())
|
||||
{
|
||||
i = 1;
|
||||
#ifdef DEBUG_TICK
|
||||
std::cerr << "pqipersongrp::tick() moreToTick from tickServiceSend()" << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (pqihandler::tick()) i = 1; /* does actual Send/Recv */
|
||||
if (pqihandler::tick()) /* does actual Send/Recv */
|
||||
{
|
||||
i = 1;
|
||||
#ifdef DEBUG_TICK
|
||||
std::cerr << "pqipersongrp::tick() moreToTick from pqihandler::tick()" << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (tickServiceRecv()) i = 1;
|
||||
|
||||
return 1;
|
||||
if (tickServiceRecv())
|
||||
{
|
||||
i = 1;
|
||||
#ifdef DEBUG_TICK
|
||||
std::cerr << "pqipersongrp::tick() moreToTick from tickServiceRecv()" << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
return i;
|
||||
}
|
||||
|
||||
int pqipersongrp::status()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue