mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-23 17:29:42 +01:00
Attempt to fix a potential scanner deadlock
This commit is contained in:
parent
d388b3608e
commit
38211e166f
@ -268,12 +268,14 @@ void
|
||||
ScanManager::scannerFinished()
|
||||
{
|
||||
tLog( LOGVERBOSE ) << Q_FUNC_INFO;
|
||||
if ( !m_scanner.isNull() )
|
||||
if ( !m_scanner.isNull() || m_musicScannerThreadController )
|
||||
{
|
||||
m_musicScannerThreadController->quit();
|
||||
m_musicScannerThreadController->wait( 60000 );
|
||||
|
||||
delete m_scanner.data();
|
||||
if ( !m_scanner.isNull() )
|
||||
delete m_scanner.data();
|
||||
|
||||
delete m_musicScannerThreadController;
|
||||
m_musicScannerThreadController = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user