From b20c4a6b17e61959183ce0ecd441e0220f5603d4 Mon Sep 17 00:00:00 2001 From: levs42 Date: Fri, 9 Feb 2024 15:29:03 -0800 Subject: [PATCH] Change RTMPStream readyState observers to open --- Sources/RTMP/RTMPStream.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/RTMP/RTMPStream.swift b/Sources/RTMP/RTMPStream.swift index 7528bba9b..08d8f7206 100644 --- a/Sources/RTMP/RTMPStream.swift +++ b/Sources/RTMP/RTMPStream.swift @@ -416,7 +416,7 @@ open class RTMPStream: IOStream { return metadata } - override public func readyStateWillChange(to readyState: IOStream.ReadyState) { + override open func readyStateWillChange(to readyState: IOStream.ReadyState) { switch self.readyState { case .publishing: FCUnpublish() @@ -426,7 +426,7 @@ open class RTMPStream: IOStream { super.readyStateWillChange(to: readyState) } - override public func readyStateDidChange(to readyState: IOStream.ReadyState) { + override open func readyStateDidChange(to readyState: IOStream.ReadyState) { guard let connection else { return }