Skip to content

Commit

Permalink
Nil delegate when removing subscriber (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinswart committed May 8, 2017
1 parent 8ee716e commit 8f94fc6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ public final class LiveVideoViewController: UIViewController {
}

private func removeSubscriber(subscriber: OTSubscriber) {
subscriber.delegate = nil
subscriber.view.doIfSome { self.removeVideoView(view: $0) }
self.session?.unsubscribe(subscriber, error: nil)
self.subscribers.index(of: subscriber).doIfSome { self.subscribers.remove(at: $0) }
Expand Down

0 comments on commit 8f94fc6

Please sign in to comment.