From 5586b28dd88afc3405899b9b8a081e8c183f1ad9 Mon Sep 17 00:00:00 2001 From: ThibaultBee <37510686+ThibaultBee@users.noreply.github.com> Date: Wed, 7 Feb 2024 11:06:43 +0100 Subject: [PATCH] fix(lib): dispatching connect seems to be slower --- Sources/ApiVideoLiveStream/ApiVideoLiveStream.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Sources/ApiVideoLiveStream/ApiVideoLiveStream.swift b/Sources/ApiVideoLiveStream/ApiVideoLiveStream.swift index 9ced1d2..05403cb 100644 --- a/Sources/ApiVideoLiveStream/ApiVideoLiveStream.swift +++ b/Sources/ApiVideoLiveStream/ApiVideoLiveStream.swift @@ -372,9 +372,7 @@ public class ApiVideoLiveStream { self.streamKey = streamKey self.url = url - self.rtmpStream.lockQueue.sync { - rtmpConnection.connect(url) - } + self.rtmpConnection.connect(url) } /// Stop your livestream