mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 15:29:42 +01:00
* Keep retrying when error indicates a pragma query.
This commit is contained in:
parent
5dfe460f9d
commit
b53a9b6d67
@ -102,7 +102,7 @@ TomahawkSqlQuery::commitTransaction()
|
||||
if ( isBusyError( lastError() ) )
|
||||
retries = 0;
|
||||
|
||||
tDebug() << "INFO: Retrying failed commit:" << retries << lastQuery() << lastError().text();
|
||||
tDebug() << "INFO: Retrying failed commit:" << retries << lastError().text();
|
||||
TomahawkUtils::msleep( 10 );
|
||||
}
|
||||
|
||||
@ -127,5 +127,5 @@ TomahawkSqlQuery::isBusyError( const QSqlError& error ) const
|
||||
{
|
||||
const QString text = error.text().trimmed().toLower();
|
||||
|
||||
return ( text.contains( "locked" ) || text.contains( "busy" ) || text.isEmpty() );
|
||||
return ( text.contains( "no query" ) || text.contains( "locked" ) || text.contains( "busy" ) || text.isEmpty() );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user