floe / surfacecast

SurfaceCast: merge and distribute surface streams and webcam chat via WebRTC
GNU Lesser General Public License v3.0
11 stars 3 forks source link

Fix race condition between clients connecting #40

Closed floe closed 1 year ago

floe commented 1 year ago

When two clients connect near-simultaneously, it will screw up the mixer wiring. Hold connections until the first one is done.

floe commented 1 year ago

Might best be solved by using threading.Lock as a mutex. acquire() in webrtc_server.py and release() in client.py.