Fix some front-end bugs.

This commit is contained in:
AnduinXue
2023-12-13 12:28:39 +00:00
parent 60cb22cb22
commit 3b9f131016
4 changed files with 15 additions and 11 deletions
@@ -43,6 +43,10 @@ public class GamesController : Controller
{
await pusher.Listen(HttpContext.RequestAborted);
}
catch (TaskCanceledException)
{
// Ignore. This happens when the client closes the connection.
}
finally
{
await pusher.Close(HttpContext.RequestAborted);