From 8932fc8b9d0646d35f5fed153877758eb460488c Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Wed, 20 Aug 2025 19:38:38 +0800 Subject: [PATCH] fix --- Sources/Punchnet/SDLContext.swift | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Sources/Punchnet/SDLContext.swift b/Sources/Punchnet/SDLContext.swift index 9f3540b..340b10f 100644 --- a/Sources/Punchnet/SDLContext.swift +++ b/Sources/Punchnet/SDLContext.swift @@ -80,7 +80,7 @@ public class SDLContext: @unchecked Sendable { private let logger: SDLLogger private var rootTask: Task? - + struct RegisterRequest { let srcMac: Data let dstMac: Data @@ -161,11 +161,6 @@ public class SDLContext: @unchecked Sendable { } } - Task { - try await Task.sleep(for: .seconds(20)) - self.rootTask?.cancel() - } - try await self.rootTask?.value }