* switched off some debugging.

* fixed tickrate slow down (when no activity)
 * added extra flags to interface.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@871 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2008-12-07 14:53:57 +00:00
parent c05acf2f95
commit d89eda510f
6 changed files with 27 additions and 13 deletions

View file

@ -47,6 +47,7 @@ const int ftserverzone = 29539;
/***
* #define SERVER_DEBUG 1
* #define DEBUG_TICK 1
***/
/* Setup */
@ -612,10 +613,15 @@ int ftServer::tick()
// This function needs to be divided up.
bool ftServer::handleInputQueues()
{
handleCacheData();
handleFileData();
return true;
bool moreToTick = false;
if (handleCacheData())
moreToTick = true;
if (handleFileData())
moreToTick = true;
return moreToTick;
}
bool ftServer::handleCacheData()
@ -704,9 +710,11 @@ bool ftServer::handleCacheData()
//rslog(RSL_DEBUG_BASIC, ftserverzone, out2.str());
mP3iface -> SendSearchResult(ci);
i++;
}
}
return true;
return (i > 0);
}
@ -740,7 +748,6 @@ bool ftServer::handleFileData()
FileInfo(ffr);
delete fr;
}
// now File Data.