forked from abrasive/shairport
-
-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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...
- Loading branch information
Showing
1 changed file
with
33 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters