Commit 9ee45812 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Revert "MediaLibrary: Don't start reloading automatically"

This reverts commit 17ef36b6.
parent 33575559
...@@ -625,6 +625,7 @@ void MediaLibrary::createDiscoverers() ...@@ -625,6 +625,7 @@ void MediaLibrary::createDiscoverers()
m_discovererWorker.reset( new DiscovererWorker( this ) ); m_discovererWorker.reset( new DiscovererWorker( this ) );
for ( const auto& fsFactory : m_fsFactories ) for ( const auto& fsFactory : m_fsFactories )
m_discovererWorker->addDiscoverer( std::unique_ptr<IDiscoverer>( new FsDiscoverer( fsFactory, this, m_callback ) ) ); m_discovererWorker->addDiscoverer( std::unique_ptr<IDiscoverer>( new FsDiscoverer( fsFactory, this, m_callback ) ) );
m_discovererWorker->reload();
} }
void MediaLibrary::startDeletionNotifier() void MediaLibrary::startDeletionNotifier()
......
...@@ -64,7 +64,6 @@ void Tests::Reload( std::shared_ptr<factory::IFileSystem> fs /*= nullptr*/, IMed ...@@ -64,7 +64,6 @@ void Tests::Reload( std::shared_ptr<factory::IFileSystem> fs /*= nullptr*/, IMed
ml->setDeviceLister( mockDeviceLister ); ml->setDeviceLister( mockDeviceLister );
ml->setVerbosity( LogLevel::Error ); ml->setVerbosity( LogLevel::Error );
bool res = ml->initialize( "test.db", "/tmp", metadataCb ); bool res = ml->initialize( "test.db", "/tmp", metadataCb );
ml->reload();
ASSERT_TRUE( res ); ASSERT_TRUE( res );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment