diff --git a/TShockAPI/Sockets/LinuxTcpSocket.cs b/TShockAPI/Sockets/LinuxTcpSocket.cs index 3ccd4acc..72e8e9d3 100644 --- a/TShockAPI/Sockets/LinuxTcpSocket.cs +++ b/TShockAPI/Sockets/LinuxTcpSocket.cs @@ -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; } } } diff --git a/TerrariaServerAPI b/TerrariaServerAPI index 9e87b3a3..5fee7b24 160000 --- a/TerrariaServerAPI +++ b/TerrariaServerAPI @@ -1 +1 @@ -Subproject commit 9e87b3a33f0cb97b4e0a72e2694c3f69bb55b63e +Subproject commit 5fee7b24fa6057631114c23c6c01c4a35f3f1bc7