diff --git a/TShockAPI/RconHandler.cs b/TShockAPI/RconHandler.cs index 6a2ad060..909644dd 100644 --- a/TShockAPI/RconHandler.cs +++ b/TShockAPI/RconHandler.cs @@ -79,7 +79,8 @@ namespace TShockAPI private static void Listener() { - listener = new UdpClient(ListenPort); + if (listener == null) + listener = new UdpClient(ListenPort); while (ContinueServer) { try