From 8bb8114223dc4544c55c52438afc4956fe8a49d5 Mon Sep 17 00:00:00 2001 From: high Date: Wed, 24 Aug 2011 22:22:57 -0400 Subject: [PATCH] Fixed not setting kill when disconnecting a client. Handling the disconnect packet makes Terraria not set ServSocket.kill. --- TShockAPI/Properties/AssemblyInfo.cs | 4 ++-- TShockAPI/TShock.cs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/TShockAPI/Properties/AssemblyInfo.cs b/TShockAPI/Properties/AssemblyInfo.cs index e6f0cce7..9f074a56 100644 --- a/TShockAPI/Properties/AssemblyInfo.cs +++ b/TShockAPI/Properties/AssemblyInfo.cs @@ -36,5 +36,5 @@ using System.Runtime.InteropServices; // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("3.2.8.0820")] -[assembly: AssemblyFileVersion("3.2.8.0820")] +[assembly: AssemblyVersion("3.2.8.0824")] +[assembly: AssemblyFileVersion("3.2.8.0824")] diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 25fe5c07..7d0a034c 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -705,6 +705,7 @@ namespace TShockAPI { if (sock == null || !sock.active) return; + sock.kill = true; using (var ms = new MemoryStream()) { new DisconnectMsg {Reason = str}.PackFull(ms);