mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
dumb way to keep voxel server alive for testing
This commit is contained in:
parent
abc0deaa78
commit
f4e9594f72
1 changed files with 1 additions and 1 deletions
|
@ -233,7 +233,7 @@ void *removeSilentAgents(void *args) {
|
|||
checkTimeUSecs = usecTimestampNow();
|
||||
|
||||
for(std::vector<Agent>::iterator agent = agents->begin(); agent != agents->end();) {
|
||||
if ((checkTimeUSecs - agent->getLastRecvTimeUsecs()) > AGENT_SILENCE_THRESHOLD_USECS) {
|
||||
if ((checkTimeUSecs - agent->getLastRecvTimeUsecs()) > AGENT_SILENCE_THRESHOLD_USECS && agent->getType() != 'V') {
|
||||
std::cout << "Killing agent " << &(*agent) << "\n";
|
||||
pthread_mutex_lock(&vectorChangeMutex);
|
||||
agent = agents->erase(agent);
|
||||
|
|
Loading…
Reference in a new issue