Skip to content

Commit

Permalink
resolves two retain cycles
Browse files Browse the repository at this point in the history
this also resolves a issue where wrong infectionStatus was provided to the app after resetting the SDK
  • Loading branch information
stmitt committed May 11, 2021
1 parent fc0ef0b commit d32fd86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/DP3TSDK/Background/DP3TBackgroundTaskManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class DP3TBackgroundTaskManager {

private let serviceClient: ExposeeServiceClientProtocol

private let tracer: Tracer
private weak var tracer: Tracer!

init(handler: DP3TBackgroundHandler?,
keyProvider: DiagnosisKeysProvider,
Expand Down
2 changes: 1 addition & 1 deletion Sources/DP3TSDK/Tracing/ExposureNotificationTracer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ExposureNotificationTracer: Tracer {
private var stateObservation: NSKeyValueObservation?
private var enabledObservation: NSKeyValueObservation?

var delegate: TracerDelegate?
weak var delegate: TracerDelegate?

private let queue = DispatchQueue(label: "org.dpppt.tracer")

Expand Down

0 comments on commit d32fd86

Please sign in to comment.