mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-04 16:14:00 +01:00
Bug 2070 - Linux: Crash on Rescan Audio Devices if Jack already stopped
This commit is contained in:
@@ -1008,12 +1008,18 @@ static void Terminate( struct PaUtilHostApiRepresentation *hostApi )
|
||||
|
||||
/* note: this automatically disconnects all ports, since a deactivated
|
||||
* client is not allowed to have any ports connected */
|
||||
ASSERT_CALL( jack_deactivate( jackHostApi->jack_client ), 0 );
|
||||
if( !jackHostApi->jackIsDown )
|
||||
{
|
||||
ASSERT_CALL( jack_deactivate( jackHostApi->jack_client ), 0 );
|
||||
}
|
||||
|
||||
PaJack_TerminateHostApiMutex( jackHostApi );
|
||||
PaJack_TerminateCommandSync( jackHostApi );
|
||||
|
||||
ASSERT_CALL( jack_client_close( jackHostApi->jack_client ), 0 );
|
||||
if( !jackHostApi->jackIsDown )
|
||||
{
|
||||
ASSERT_CALL( jack_client_close( jackHostApi->jack_client ), 0 );
|
||||
}
|
||||
|
||||
if( jackHostApi->deviceInfoMemory )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user