Changeset 3794f6d in network-game for common


Ignore:
Timestamp:
Jul 17, 2013, 2:00:08 AM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
cc6a14a
Parents:
855f153
Message:

Bug fix for MessageProcessor acks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/MessageProcessor.cpp

    r855f153 r3794f6d  
    6363
    6464         sendto(sock, (char*)&ack, sizeof(NETWORK_MSG), 0, (struct sockaddr *)source, sizeof(struct sockaddr_in));
    65       }else
     65      }else {
    6666         cout << "Got duplicate ack" << endl;
     67         return -1;
     68      }
    6769   }
    6870
     
    100102
    101103   while (it2 != ackedMessages.end()) {
    102       if ((getCurrentMillis() - it2->second) > 5000) {
     104      if ((getCurrentMillis() - it2->second) > 500) {
    103105         ackedMessages.erase(it2++);
    104106         cout << "Deleting ack record" << endl;
Note: See TracChangeset for help on using the changeset viewer.