From 60698238b728bea5d000d40262b0da6de4833b74 Mon Sep 17 00:00:00 2001 From: AnduinXue Date: Tue, 28 Nov 2023 09:16:34 +0000 Subject: [PATCH] Delay 1 second. --- src/Aiursoft.ChessServer/Controllers/GamesController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Aiursoft.ChessServer/Controllers/GamesController.cs b/src/Aiursoft.ChessServer/Controllers/GamesController.cs index f5494b5..40dfe4a 100644 --- a/src/Aiursoft.ChessServer/Controllers/GamesController.cs +++ b/src/Aiursoft.ChessServer/Controllers/GamesController.cs @@ -66,7 +66,7 @@ public class GamesController : Controller subscription = channel.Subscribe(async t => { await _pusher.SendMessage(t.Content); }); while (_pusher.Connected) { - await Task.Delay(int.MaxValue); + await Task.Delay(1000); } } finally