Skip to content

Commit

Permalink
fixed crash on launch
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Halpin committed Sep 7, 2023
1 parent 71951ae commit 98e1a28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HalpoPlayer.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = HalpoPlayer/HalpoPlayer.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_ASSET_PATHS = "\"HalpoPlayer/Preview Content\"";
DEVELOPMENT_TEAM = 942GRELLQU;
ENABLE_PREVIEWS = YES;
Expand Down Expand Up @@ -633,7 +633,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = HalpoPlayer/HalpoPlayer.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_ASSET_PATHS = "\"HalpoPlayer/Preview Content\"";
DEVELOPMENT_TEAM = 942GRELLQU;
ENABLE_PREVIEWS = YES;
Expand Down
1 change: 1 addition & 0 deletions HalpoPlayer/AudioManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class AudioManager: ObservableObject {
}

func play(songs: [Song], index: Int, paused: Bool = false, currentTime: TimeInterval = 0) {
if songs.isEmpty { return }
self.activateSession { success in
guard success else { return }
self.queue.stop()
Expand Down

0 comments on commit 98e1a28

Please sign in to comment.