protected override void ProcessAccept(GamespyTcpStream Stream)
{
try
{
// Convert the TcpClient to a MasterClient
GpspClient client = new GpspClient(Stream);
Clients.TryAdd(client.ConnectionId, client);
// Begin accepting data now that we are fully connected
Stream.BeginReceive();
}
catch (Exception e)
{
Program.ErrorLog.Write("WARNING: An Error occured at [Gpsp.ProcessAccept] : Generating Exception Log");
ExceptionHandler.GenerateExceptionLog(e);
base.Release(Stream);
}
}