Skip to content

Commit 07cad09

Browse files
authored
Merge pull request #312 from kabiroberai/kabir/fix-networklogger-deadlock
Fix deadlock in NetworkLogger
2 parents c102aaa + 6383c7d commit 07cad09

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)