From d775f5ba96de618ae649297ee7f38e127fd7251c Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Sun, 3 Aug 2025 00:10:32 +0800 Subject: [PATCH] add debug --- Sources/Punchnet/SDLSuperClient.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/Punchnet/SDLSuperClient.swift b/Sources/Punchnet/SDLSuperClient.swift index 5aafcc6..2622fb3 100644 --- a/Sources/Punchnet/SDLSuperClient.swift +++ b/Sources/Punchnet/SDLSuperClient.swift @@ -63,6 +63,9 @@ actor SDLSuperClient { group.addTask { try await self.asyncChannel.channel.closeFuture.get() NSLog("[SDLSuperClient] socket closed") + self.writeContinuation.finish() + self.inboundContinuation.finish() + throw SDLError.socketClosed } @@ -183,7 +186,6 @@ actor SDLSuperClient { deinit { try! group.syncShutdownGracefully() - self.inboundContinuation.finish() } }