Skip to content

Commit

Permalink
fix(lib): dispatching connect seems to be slower
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Feb 7, 2024
1 parent da9e8db commit 5586b28
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Sources/ApiVideoLiveStream/ApiVideoLiveStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5586b28

Please sign in to comment.