Commit 17ef36b6 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

MediaLibrary: Don't start reloading automatically

parent 8dcec1e6
......@@ -625,7 +625,6 @@ void MediaLibrary::startDiscoverer()
m_discoverer.reset( new DiscovererWorker( this ) );
for ( const auto& fsFactory : m_fsFactories )
m_discoverer->addDiscoverer( std::unique_ptr<IDiscoverer>( new FsDiscoverer( fsFactory, this, m_callback ) ) );
m_discoverer->reload();
}
void MediaLibrary::startDeletionNotifier()
......
......@@ -64,6 +64,7 @@ void Tests::Reload( std::shared_ptr<factory::IFileSystem> fs /*= nullptr*/, IMed
ml->setDeviceLister( mockDeviceLister );
ml->setVerbosity( LogLevel::Error );
bool res = ml->initialize( "test.db", "/tmp", metadataCb );
ml->reload();
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