From 24f75069e8729e4d94d2e4d2ee2da1c2c0f22cfe Mon Sep 17 00:00:00 2001 From: Luke Date: Mon, 12 Dec 2016 23:51:57 +1000 Subject: [PATCH] Submodule update for pressure plate, fixed connections after max slot is reached --- TShockAPI/Sockets/LinuxTcpSocket.cs | 6 ++++++ TerrariaServerAPI | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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