diff --git a/logic/Server/RpcServices.cs b/logic/Server/RpcServices.cs index 2db93b2..fb5c822 100644 --- a/logic/Server/RpcServices.cs +++ b/logic/Server/RpcServices.cs @@ -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 {