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

@ -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);