fix context
This commit is contained in:
parent
ff9aaceefe
commit
8b4f61b2f2
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user