Fixed not setting kill when disconnecting a client. Handling the disconnect packet makes Terraria not set ServSocket.kill.
This commit is contained in:
parent
6b8dea306c
commit
8bb8114223
2 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue