Fixed not setting kill when disconnecting a client. Handling the disconnect packet makes Terraria not set ServSocket.kill.

This commit is contained in:
high 2011-08-24 22:22:57 -04:00
parent 6b8dea306c
commit 8bb8114223
2 changed files with 3 additions and 2 deletions

View file

@ -36,5 +36,5 @@ using System.Runtime.InteropServices;
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.2.8.0820")] [assembly: AssemblyVersion("3.2.8.0824")]
[assembly: AssemblyFileVersion("3.2.8.0820")] [assembly: AssemblyFileVersion("3.2.8.0824")]

View file

@ -705,6 +705,7 @@ namespace TShockAPI
{ {
if (sock == null || !sock.active) if (sock == null || !sock.active)
return; return;
sock.kill = true;
using (var ms = new MemoryStream()) using (var ms = new MemoryStream())
{ {
new DisconnectMsg {Reason = str}.PackFull(ms); new DisconnectMsg {Reason = str}.PackFull(ms);