Submodule update for pressure plate, fixed connections after max slot is reached

This commit is contained in:
Luke 2016-12-12 23:51:57 +10:00
parent c73003fc67
commit 24f75069e8
2 changed files with 7 additions and 1 deletions

View file

@ -167,6 +167,12 @@ namespace TShockAPI.Sockets
}
}
this._listener.Stop();
// currently vanilla will stop listening when the slots are full, however it appears that this Netplay.IsListening
// flag is still set, making the server loop beleive it's still listening when it's actually not.
// clearing this flag when we actually have stopped will allow the ServerLoop to start listening again when
// there are enough slots available.
Netplay.IsListening = false;
}
}
}