-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/memory leak #269
Fix/memory leak #269
Conversation
…uality # Conflicts: # Course/Course/SwiftGen/Strings.swift # Course/Course/en.lproj/Localizable.strings # Course/Course/uk.lproj/Localizable.strings
# Conflicts: # Course/Course/Presentation/Outline/ContinueWithView.swift # Profile/Profile.xcodeproj/project.pbxproj
# Conflicts: # Course/Course.xcodeproj/project.pbxproj # Course/Course/Data/CourseRepository.swift
currentProgress(progress, currentSeconds) | ||
} | ||
} | ||
|
||
func updateUIViewController(_ playerController: AVPlayerViewController, context: Context) { | ||
DispatchQueue.main.async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@forgotvas As we are here, how about defining updateUIViewController
as @MainActor
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@saeedbashir to be honestly i don't think that DispatchQueue.main.async
required here, because updateUIViewController it's a swiftUI view life cycle method that should guarantee that it will be called from main thread. I will try to test that without dispatch and will commit changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@saeedbashir have removed DispatchQueue.main.async
and tested with enabled Main thread checker
(enabled by default) and Thread sanitizer
diagnostic tools - no problem there.
This PR contains fix for:
RPReplay_Final1705666901.MP4