Skip to content

Commit

Permalink
Release lock after context value has been removed (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattxw authored Aug 3, 2023
1 parent ff57bcc commit 46c8adc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ class ActivityContextManager: ContextManager {
if contextMap[activityIdent]?.isEmpty ?? false {
contextMap[activityIdent] = nil
}
rlock.unlock()
if let scope = objectScope.object(forKey: value) {
var scope = scope.scope
os_activity_scope_leave(&scope)
objectScope.removeObject(forKey: value)
}
rlock.unlock()
}
}

0 comments on commit 46c8adc

Please sign in to comment.