Skip to content

Commit cea0856

Browse files
committed
Fix: Stopping the player does not remove scheduled events
1 parent a8386a5 commit cea0856

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/BasicAudioPlayer/BAPlayer/BAPlayer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ public class BAPlayer {
126126

127127
/// Stops the playback and removes any scheduled events.
128128
///
129-
/// This method does nothing when the player is playing or paused.
129+
/// This method does nothing when no audio file is loaded.
130130
public func stop() {
131-
guard status == .playing || status == .paused else {
131+
guard status != .noSource else {
132132
log.info("Couldn't stop the player: the player is already stopped.")
133133
return
134134
}

0 commit comments

Comments
 (0)