From f66cb877f90e8aa1ceac4090badbdfe08f5ec188 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Sat, 17 May 2025 21:34:44 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20periodicPlaybackTimer=20=EA=B3=84?= =?UTF-8?q?=EC=82=B0=EC=8B=9C=20initialDelay=EC=99=80=20repeating=EC=97=90?= =?UTF-8?q?=20=EC=9E=88=EB=8A=94=20=EA=B0=99=EC=9D=80=20=EA=B0=92=EC=9D=84?= =?UTF-8?q?=20period=20=EB=B3=80=EC=88=98=EB=A1=9C=20=EC=84=A0=EC=96=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaLive/Sources/Live/Room/LiveRoomViewModel.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SodaLive/Sources/Live/Room/LiveRoomViewModel.swift b/SodaLive/Sources/Live/Room/LiveRoomViewModel.swift index e2dbfca..6695a71 100644 --- a/SodaLive/Sources/Live/Room/LiveRoomViewModel.swift +++ b/SodaLive/Sources/Live/Room/LiveRoomViewModel.swift @@ -1810,8 +1810,9 @@ final class LiveRoomViewModel: NSObject, ObservableObject { private func startPeriodicPlaybackValidation() { let queue = DispatchQueue.global(qos: .background) + let period = DispatchTimeInterval.seconds(1800) periodicPlaybackTimer = DispatchSource.makeTimerSource(queue: queue) - periodicPlaybackTimer?.schedule(deadline: .now() + 1800, repeating: 1800) + periodicPlaybackTimer?.schedule(deadline: .now() + period, repeating: period) periodicPlaybackTimer?.setEventHandler { [weak self] in self?.trackEventLiveContinuousListen30() }