- bugfix for windows users to be able to host games
This commit is contained in:
parent
9f703f2303
commit
7438ec4669
|
@ -1031,7 +1031,8 @@ void ConnectionSlot::update(bool checkForNewClients,int lockedSlotIndex) {
|
|||
}
|
||||
|
||||
void ConnectionSlot::validateConnection() {
|
||||
if(gotIntro == false && connectedTime > 0 &&
|
||||
if(this->isConnected() == true &&
|
||||
gotIntro == false && connectedTime > 0 &&
|
||||
difftime(time(NULL),connectedTime) > GameConstants::maxClientConnectHandshakeSecs) {
|
||||
close();
|
||||
}
|
||||
|
@ -1063,6 +1064,7 @@ void ConnectionSlot::close() {
|
|||
|
||||
ready = false;
|
||||
gotIntro = false;
|
||||
connectedTime = 0;
|
||||
|
||||
if(SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s] END\n",__FILE__,__FUNCTION__);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user