Skip to content

Commit

Permalink
revert unregister memory
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianAtNacamar committed Nov 25, 2021
1 parent 57ba8c4 commit 4de5ece
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions player-sdk-swift/loading/AudioDataLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ class AudioDataLoader: NSObject, URLSessionDataDelegate, NetworkListener, Memory
func stopRequestData() {
Logger.loading.debug()
endSession()
PlayerContext.unregister(listener: self)
PlayerContext.unregisterMemoryListener(listener: self)
stalled = false
}

Expand All @@ -116,8 +118,6 @@ class AudioDataLoader: NSObject, URLSessionDataDelegate, NetworkListener, Memory
session.invalidateAndCancel()
self.session = nil
}
PlayerContext.unregister(listener: self)
PlayerContext.unregisterMemoryListener(listener: self)
}

// MARK: handling memory
Expand Down

0 comments on commit 4de5ece

Please sign in to comment.