Browse Source

fix: 🐛 skip sending message to exited client

dev
Timothy Liu GitHub 2 years ago
parent
commit
2412844efe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      logic/Server/RpcServices.cs

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

@@ -145,7 +145,7 @@ namespace Server
semaDict[request.PlayerId].Item1.Wait();
try
{
if (currentGameInfo != null)
if (currentGameInfo != null && !exitFlag)
{
await responseStream.WriteAsync(currentGameInfo);
//Console.WriteLine("Send!");


Loading…
Cancel
Save