Changeset 855f153 in network-game


Ignore:
Timestamp:
Jul 17, 2013, 1:53:54 AM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
3794f6d
Parents:
4dbac87
Message:

Added debug info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/MessageProcessor.cpp

    r4dbac87 r855f153  
    5454
    5555      if (ackedMessages.find(msg->id) != ackedMessages.end()) {
     56         cout << "Not a duplicate" << endl;
     57
    5658         ackedMessages[msg->id] = getCurrentMillis();
    5759
     
    98100
    99101   while (it2 != ackedMessages.end()) {
    100       if ((getCurrentMillis() - it2->second) > 500)
     102      if ((getCurrentMillis() - it2->second) > 5000) {
    101103         ackedMessages.erase(it2++);
    102       else
     104         cout << "Deleting ack record" << endl;
     105      }else
    103106         it2++;
    104107   }
Note: See TracChangeset for help on using the changeset viewer.