This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
EESAST
/
THUAI6
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
3
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
chore: note when client exit
tags/0.1.0
TCL
3 years ago
parent
04c651ec95
commit
d078e25ba6
1 changed files
with
6 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
{
Write
Preview
Loading…
Cancel
Save