Bugfixes
This commit is contained in:
@@ -112,6 +112,8 @@ namespace ErgometerServer
|
||||
throw new FormatException("Unknown command");
|
||||
}
|
||||
}
|
||||
|
||||
server.RemoveActiveSession(this);
|
||||
}
|
||||
|
||||
public void SendToClient(NetCommand command)
|
||||
|
||||
@@ -28,7 +28,6 @@ namespace ErgometerServer
|
||||
FileHandler.CheckStorage();
|
||||
|
||||
users = FileHandler.LoadUsers();
|
||||
|
||||
clients = new List<ClientThread>();
|
||||
|
||||
TcpListener listener = new TcpListener(NetHelper.GetIP("127.0.0.1"), 8888);
|
||||
@@ -157,6 +156,11 @@ namespace ErgometerServer
|
||||
return sessions;
|
||||
}
|
||||
|
||||
internal void RemoveActiveSession(ClientThread clientThread)
|
||||
{
|
||||
clients.Remove(clientThread);
|
||||
}
|
||||
|
||||
private string GeneratePassword(int len = 8)
|
||||
{
|
||||
string pass = "";
|
||||
|
||||
Reference in New Issue
Block a user