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
|
|
@ -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")]
|
||||
|
|
|
|||
|
|
@ -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