Skip to content

Commit

Permalink
Merge pull request #560 from DataDog/buranmert/RUMM-1544-runloop-mode…
Browse files Browse the repository at this point in the history
…-fix

RUMM-1544 RunLoop is used in common mode only
  • Loading branch information
buranmert authored Aug 12, 2021
2 parents 6ff9077 + 1f138bd commit fde22a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Datadog/RUM/RUMVitals/VitalInfoSampler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ internal final class VitalInfoSampler {
// NOTE: RUMM-1280 based on my running Example app
// non-main run loops don't fire the timer.
// Although i can't catch this in unit tests
RunLoop.main.add(timer, forMode: .default)
RunLoop.main.add(timer, forMode: .common)
self.timer = timer
}

Expand Down

0 comments on commit fde22a8

Please sign in to comment.