From e6fc903439a57c53f5dac5e92d35964cfc8333eb Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Sun, 3 Aug 2025 00:16:08 +0800 Subject: [PATCH] add debug --- Sources/Punchnet/SDLSuperClient.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/Punchnet/SDLSuperClient.swift b/Sources/Punchnet/SDLSuperClient.swift index 2622fb3..3eda71c 100644 --- a/Sources/Punchnet/SDLSuperClient.swift +++ b/Sources/Punchnet/SDLSuperClient.swift @@ -101,12 +101,13 @@ actor SDLSuperClient { group.addTask { while !Task.isCancelled { await self.ping() - try? await Task.sleep(nanoseconds: 5 * 1_000_000_000) + try await Task.sleep(nanoseconds: 5 * 1_000_000_000) } NSLog("[SDLSuperClient] heartbeat cancelled") } try await group.waitForAll() + NSLog("[SDLSuperClient] group closed") } } }