Skip to content

Commit

Permalink
Remove assume isolated
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenTiigi committed Aug 11, 2024
1 parent ec8551c commit 88627ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions Sources/HostingView/YouTubePlayerHostingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ public final class YouTubePlayerHostingView: YouTubePlayerHostingBaseView {

/// Deinit
deinit {
MainActor.assumeIsolated {
self.player.pause()
}
self.player.pause()
}

}
4 changes: 1 addition & 3 deletions Sources/ViewController/YouTubePlayerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ public final class YouTubePlayerViewController: YouTubePlayerBaseViewController

/// Deinit
deinit {
MainActor.assumeIsolated {
self.player.pause()
}
self.player.pause()
}

// MARK: View-Lifecycle
Expand Down

0 comments on commit 88627ad

Please sign in to comment.