diff options
| author | andreykproductengine <akleshchev@productengine.com> | 2014-12-23 13:22:27 +0200 | 
|---|---|---|
| committer | andreykproductengine <akleshchev@productengine.com> | 2014-12-23 13:22:27 +0200 | 
| commit | c4bdab4cb3f9cddf5a0126923985fd461f75ed1d (patch) | |
| tree | 42dde676ffaee302b6e5c08597a020ab0317e732 /indra/llmessage | |
| parent | 9fcdeae1ddd25cbff8fdb91337598bc84577084a (diff) | |
MAINT-4708 Linux build fix
Diffstat (limited to 'indra/llmessage')
| -rwxr-xr-x | indra/llmessage/llcircuit.cpp | 10 | 
1 files changed, 3 insertions, 7 deletions
| diff --git a/indra/llmessage/llcircuit.cpp b/indra/llmessage/llcircuit.cpp index 9538c4c6db..955a66f864 100755 --- a/indra/llmessage/llcircuit.cpp +++ b/indra/llmessage/llcircuit.cpp @@ -1095,7 +1095,8 @@ void LLCircuit::sendAcks(F32 collect_time)  	circuit_data_map::iterator it = mSendAckMap.begin();  	while (it != mSendAckMap.end())  	{ -		cd = (*it).second; +		circuit_data_map::iterator cur_it = it++; +		cd = (*cur_it).second;  		S32 count = (S32)cd->mAcks.size();  		F32 age = cd->getAgeInSeconds() - cd->mAckCreationTime;  		if (age > collect_time || count == 0) @@ -1138,12 +1139,7 @@ void LLCircuit::sendAcks(F32 collect_time)  				cd->mAckCreationTime = 0.f;  			}  			// remove data map -			it = mSendAckMap.erase(it); -		} -		else -		{ -			//continue collecting acks for this map -			++it; +			mSendAckMap.erase(cur_it);  		}  	}  } | 
