fix context

This commit is contained in:
anlicheng 2026-05-06 20:46:48 +08:00
parent ff9aaceefe
commit 8b4f61b2f2

View File

@ -172,12 +172,12 @@ actor SDLContextActor {
SDLLogger.log("[SDLContext] startSuperClient defer")
}
// quic
try await Task.sleep(for: .seconds(0.5))
SDLLogger.log("[SDLContext] start super client: \(self.config.serverHost)")
do {
try await withTaskCancellationHandler {
// quic
try await Task.sleep(for: .seconds(0.5))
SDLLogger.log("[SDLContext] start super client: \(self.config.serverHost)")
try await withThrowingTaskGroup { group in
defer {
group.cancelAll()