Skip to content

Commit 6383c7d

Browse files
committed
Fix deadlock in NetworkLogger
1 parent c102aaa commit 6383c7d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/Pulse/NetworkLogger/NetworkLogger.swift

+1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ public final class NetworkLogger: @unchecked Sendable {
161161
public func logTaskCreated(_ task: URLSessionTask) {
162162
lock.lock()
163163
guard tasks[TaskKey(task: task)] == nil else {
164+
lock.unlock()
164165
return // Already registered
165166
}
166167
let context = context(for: task)

0 commit comments

Comments
 (0)