mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-14 10:05:32 +02:00
* Disable wiping index on clucene error.
This commit is contained in:
@@ -267,8 +267,6 @@ FuzzyIndex::search( const Tomahawk::query_ptr& query )
|
|||||||
catch( LuceneException& error )
|
catch( LuceneException& error )
|
||||||
{
|
{
|
||||||
tDebug() << "Caught Lucene error:" << error.what() << query->toString();
|
tDebug() << "Caught Lucene error:" << error.what() << query->toString();
|
||||||
|
|
||||||
QTimer::singleShot( 0, this, SLOT( wipeIndex() ) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return resultsmap;
|
return resultsmap;
|
||||||
@@ -311,8 +309,6 @@ FuzzyIndex::searchAlbum( const Tomahawk::query_ptr& query )
|
|||||||
catch( LuceneException& error )
|
catch( LuceneException& error )
|
||||||
{
|
{
|
||||||
tDebug() << "Caught Lucene error:" << error.what();
|
tDebug() << "Caught Lucene error:" << error.what();
|
||||||
|
|
||||||
QTimer::singleShot( 0, this, SLOT( wipeIndex() ) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return resultsmap;
|
return resultsmap;
|
||||||
|
Reference in New Issue
Block a user