Forgot to close the StreamWriter.
This commit is contained in:
parent
03927f7d72
commit
6909810519
2 changed files with 5 additions and 0 deletions
|
|
@ -331,6 +331,7 @@ namespace TShockAPI
|
|||
tw.WriteLine(Tools.GetRealIP(Convert.ToString(Netplay.serverSock[args.PlayerID].tcpClient.Client.RemoteEndPoint)) + " superadmin");
|
||||
Tools.SendMessage(args.PlayerID, "SuperAdmin authenticated. Please re-connect using the same IP.");
|
||||
ConfigurationManager.authToken = 0;
|
||||
tw.Close();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue