]> git.ipfire.org Git - thirdparty/shairport-sync.git/commit
When a connection termiates abruptly while is it the principal_conn, make sure it...
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Sun, 24 Sep 2023 16:22:22 +0000 (17:22 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Sun, 24 Sep 2023 16:23:04 +0000 (17:23 +0100)
commita3f12d685ac6082d817fd1924e5b31d51acd2b2c
treea68ec96502ac1786144bce3cf2f1fcfa0828424a
parentb3986ed6e54211a90f2bde063e003fdba0b73bfa
When a connection termiates abruptly while is it the principal_conn, make sure it sets the principal_conn
to NULL and cleans up the bonjour flags, if appropriate.

Simplify the TEARDOWN handlers and the thress teardown functions by incporporating
the above code in the teardown_phase_two (for AP2) and teardown (fpr AP1) functions.

It means that closing a connection will block on the principal_conn_lock, so if
you have the principal_conn_lock, closing will not complete until you release it.

Maybe we need a principal_conn_acquisition_lock for that...
rtsp.c