mirror of
https://github.com/yattee/yattee.git
synced 2026-07-20 14:22:02 +00:00
Capture player weakly in outer Task to fix mismatched ownership warning
This commit is contained in:
@@ -229,7 +229,7 @@ final class AppEnvironment {
|
||||
// Wire up SMB client to check if SMB playback is active
|
||||
// This prevents crashes from concurrent libsmbclient usage
|
||||
let smbClientRef = self.smbClient
|
||||
Task {
|
||||
Task { [weak player] in
|
||||
await smbClientRef.setPlaybackActiveCallback { [weak player] in
|
||||
player?.state.isSMBPlaybackActive ?? false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user