Changeset 855f153 in network-game
- Timestamp:
- Jul 17, 2013, 1:53:54 AM (11 years ago)
- Branches:
- master
- Children:
- 3794f6d
- Parents:
- 4dbac87
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/MessageProcessor.cpp
r4dbac87 r855f153 54 54 55 55 if (ackedMessages.find(msg->id) != ackedMessages.end()) { 56 cout << "Not a duplicate" << endl; 57 56 58 ackedMessages[msg->id] = getCurrentMillis(); 57 59 … … 98 100 99 101 while (it2 != ackedMessages.end()) { 100 if ((getCurrentMillis() - it2->second) > 500 )102 if ((getCurrentMillis() - it2->second) > 5000) { 101 103 ackedMessages.erase(it2++); 102 else 104 cout << "Deleting ack record" << endl; 105 }else 103 106 it2++; 104 107 }
Note:
See TracChangeset
for help on using the changeset viewer.