                 else {
                     resume()
                 }
-                break
-
             default:
                 break
             }

            beginBackgroundTask()
            pause()

            self.currentItemIndexInQueue = currentItemIndexInQueue + 1
            currentItem = enqueuedItems?[currentItemIndexInQueue + 1].item
        }
    }



    :param: note The notification information.
    */
    @objc private func audioSessionGotInterrupted(note: NSNotification) {
        if let typeInt = note.userInfo?[AVAudioSessionInterruptionTypeKey] as? UInt, type = AVAudioSessionInterruptionType(rawValue: typeInt) {
            if type == .Began && (self.state == .Playing || self.state == .Buffering) {
                //We pause the player when an interruption is detected
