MudEngine:
- Corrected CommandLogin to support the Player.Send/Receive methods. - Re-organized the Game class source code and added additional commenting. - Began adding code to remove un-wanted characters in the received byte stream in Player.Receive()
This commit is contained in:
parent
942b038b1b
commit
29cdae3b1a
5 changed files with 199 additions and 129 deletions
|
@ -112,8 +112,12 @@ namespace MudEngine.Networking
|
|||
if (sub > 0 && sub < players./*Capacity*/Length)
|
||||
{
|
||||
clientThreads[sub].Abort();
|
||||
if(players[sub].IsActive)
|
||||
if (players[sub].IsActive)
|
||||
{
|
||||
Log.Write("Disconnecting player " + players[sub].Name);
|
||||
players[sub].Disconnect();
|
||||
Log.Write("Player disconnected.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue