mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Attempt to fix a potential scanner deadlock
This commit is contained in:
committed by
Dominik Schmidt
parent
d388b3608e
commit
38211e166f
@@ -268,12 +268,14 @@ void
|
|||||||
ScanManager::scannerFinished()
|
ScanManager::scannerFinished()
|
||||||
{
|
{
|
||||||
tLog( LOGVERBOSE ) << Q_FUNC_INFO;
|
tLog( LOGVERBOSE ) << Q_FUNC_INFO;
|
||||||
if ( !m_scanner.isNull() )
|
if ( !m_scanner.isNull() || m_musicScannerThreadController )
|
||||||
{
|
{
|
||||||
m_musicScannerThreadController->quit();
|
m_musicScannerThreadController->quit();
|
||||||
m_musicScannerThreadController->wait( 60000 );
|
m_musicScannerThreadController->wait( 60000 );
|
||||||
|
|
||||||
delete m_scanner.data();
|
if ( !m_scanner.isNull() )
|
||||||
|
delete m_scanner.data();
|
||||||
|
|
||||||
delete m_musicScannerThreadController;
|
delete m_musicScannerThreadController;
|
||||||
m_musicScannerThreadController = 0;
|
m_musicScannerThreadController = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user