mirror of https://github.com/Nezreka/SoulSync.git
Added _streamLock flag to startStream() that prevents concurrent stream requests when the user clicks play multiple times before the first request completes. Lock is released in finally block so it always clears on success, error, or exception. Previously, rapid clicks would fire multiple stream requests to the backend, each creating a separate audio playback — the only way to stop them was a browser force refresh.pull/279/head
parent
6fb32228e0
commit
121f221a4f
Loading…
Reference in new issue