source/Sources/AirPlayReceiverServer.c
static void _RemoveAllAudioConnections( void *inArg )
{
	AirPlayReceiverServerRef airPlayReceiverServer = (AirPlayReceiverServerRef) inArg;
	if( !airPlayReceiverServer )				return;
	
	// Note that if we failed to tear down some MediaControl context for unified path, we won't tear down that connection here,
	// and the sender might continue to think it is still airplaying...
	
	_RemoveHTTPServerConnectionsOfType( airPlayReceiverServer, airPlayReceiverServer->httpServer, kAirPlayHTTPConnectionTypeAudio );
	
#if( AIRPLAY_HTTP_SERVER_LEGACY )
	_RemoveHTTPServerConnectionsOfType( airPlayReceiverServer, airPlayReceiverServer->httpServerLegacy, kAirPlayHTTPConnectionTypeAudio );
#endif
	CFRelease( airPlayReceiverServer );
	aprs_ulog( kLogLevelNotice, "Stopped all AirPlay Audio Connections\n" );
}
//===========================================================================================================================
//	_RemoveAllAudioConnections
//
//  This function should NOT be called on inServer->httpQueue.
//===========================================================================================================================
_RemoveAllAudioConnections
This function should NOT be called on inServer->httpQueue.
_RemoveAllAudioConnections This function should NOT be called on inServer - > httpQueue .
static void _RemoveAllAudioConnections( void *inArg )
{
	AirPlayReceiverServerRef airPlayReceiverServer = (AirPlayReceiverServerRef) inArg;
	if( !airPlayReceiverServer )				return;
	_RemoveHTTPServerConnectionsOfType( airPlayReceiverServer, airPlayReceiverServer->httpServer, kAirPlayHTTPConnectionTypeAudio );
#if( AIRPLAY_HTTP_SERVER_LEGACY )
	_RemoveHTTPServerConnectionsOfType( airPlayReceiverServer, airPlayReceiverServer->httpServerLegacy, kAirPlayHTTPConnectionTypeAudio );
#endif
	CFRelease( airPlayReceiverServer );
	aprs_ulog( kLogLevelNotice, "Stopped all AirPlay Audio Connections\n" );
}
static void _RemoveAllAudioConnections ( void * inArg ) { AirPlayReceiverServerRef airPlayReceiverServer = ( AirPlayReceiverServerRef ) inArg ; if ( ! airPlayReceiverServer ) return ; _RemoveHTTPServerConnectionsOfType ( airPlayReceiverServer , airPlayReceiverServer -> httpServer , kAirPlayHTTPConnectionTypeAudio ) ; #if ( AIRPLAY_HTTP_SERVER_LEGACY ) _RemoveHTTPServerConnectionsOfType ( airPlayReceiverServer , airPlayReceiverServer -> httpServerLegacy , kAirPlayHTTPConnectionTypeAudio ) ; #endif CFRelease ( airPlayReceiverServer ) ; aprs_ulog ( kLogLevelNotice , " \n " ) ; }
_RemoveAllAudioConnections
This function should NOT be called on inServer->httpQueue.
_RemoveAllAudioConnections This function should NOT be called on inServer - > httpQueue .
// Note that if we failed to tear down some MediaControl context for unified path, we won't tear down that connection here, // and the sender might continue to think it is still airplaying...