Browse Source

chore: note when client exit

tags/0.1.0
TCL 3 years ago
parent
commit
d078e25ba6
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      logic/Server/RpcServices.cs

+ 6
- 1
logic/Server/RpcServices.cs View File

@@ -139,6 +139,7 @@ namespace Server
if (start) StartGame();
}

bool exitFlag = false;
do
{
semaDict[request.PlayerId].Item1.Wait();
@@ -152,7 +153,11 @@ namespace Server
}
catch (Exception)
{
//Console.WriteLine(ex);
if (!exitFlag)
{
Console.WriteLine($"The client {request.PlayerId} exited");
exitFlag = true;
}
}
finally
{


Loading…
Cancel
Save