changed heart beat limit to a larger value. Apparently too tight a value causes disconnections due to packets being stuck sometimes (old bug)

This commit is contained in:
csoler 2016-04-17 22:58:48 -04:00
parent c14c240f07
commit 26af7c900e

View File

@ -153,7 +153,7 @@ int pqiperson::tick()
#endif
//if lastHeartbeatReceived is 0, it might be not activated so don't do a net reset.
if ( active && time(NULL) > lastHeartbeatReceived + HEARTBEAT_REPEAT_TIME * 5)
if ( active && time(NULL) > lastHeartbeatReceived + HEARTBEAT_REPEAT_TIME * 20)
{
int ageLastIncoming = time(NULL) - activepqi->getLastIncomingTS();