Sendspin web player race condition losing `client/hello` (#2946)
authorMaxim Raznatovski <nda.mr43@gmail.com>
Mon, 12 Jan 2026 12:22:42 +0000 (13:22 +0100)
committerGitHub <noreply@github.com>
Mon, 12 Jan 2026 12:22:42 +0000 (13:22 +0100)
commit246f2b2e63fc42c314c5b4282bb0509275467bad
tree8593b2c1ae4a7fdcaedf3fa36d6ac9787d2268e5
parentb66a613820d24319e0f9703c9be0fd2054c56812
Sendspin web player race condition losing `client/hello` (#2946)

fix: Sendspin DataChannel race condition losing `client/hello`

Register message/close handlers before ws_connect() to ensure early
messages are queued. Change condition to also queue when task is None
(during setup), not just when running.
music_assistant/controllers/webserver/remote_access/gateway.py