     /// The state before the player went into .Buffering. It helps to know whether to restart or not
     /// the player.
     private var stateBeforeBuffering: AudioPlayerState?
-
-    /// The number of interruption since last quality adjustment/begin playing
-    private var interruptionCount = 0 {
-        didSet {
-            if adjustQualityAutomatically && interruptionCount > adjustQualityAfterInterruptionCount {
-                adjustQualityIfNecessary()
-            }
-        }
-    }
 
     /// A boolean value indicating if quality is being changed. It's necessary for the interruption
     /// count to not be incremented while new quality is buffering.

                stateWhenConnectionLost = state
                if let currentItem = player?.currentItem where currentItem.playbackBufferEmpty {
                    if state == .Playing && !qualityIsBeingChanged {
                        interruptionCount++
                    }
                    state = .WaitingForConnection
                    beginBackgroundTask()


                //Aaaaand we: restart playing/go to next
                state = .Stopped
                qualityAdjustmentEventProducer.interruptionCount += 1
                retryOrPlayNext()
            #endif

        case .StartedBuffering:
            //The buffer is empty and player is loading
            if state == .Playing && !qualityIsBeingChanged {
                qualityAdjustmentEventProducer.interruptionCount += 1
            }

            stateBeforeBuffering = state
