Commit 1deb6c68 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

FsDiscoverer: reload: Clarify assumptions

parent 8c0755da
...@@ -110,6 +110,7 @@ bool FsDiscoverer::discover( const std::string& entryPoint ) ...@@ -110,6 +110,7 @@ bool FsDiscoverer::discover( const std::string& entryPoint )
void FsDiscoverer::reloadFolder( std::shared_ptr<Folder> f ) void FsDiscoverer::reloadFolder( std::shared_ptr<Folder> f )
{ {
assert( f->isPresent() );
auto mrl = f->mrl(); auto mrl = f->mrl();
try try
...@@ -136,7 +137,11 @@ bool FsDiscoverer::reload() ...@@ -136,7 +137,11 @@ bool FsDiscoverer::reload()
LOG_INFO( "Reloading all folders" ); LOG_INFO( "Reloading all folders" );
auto rootFolders = Folder::fetchRootFolders( m_ml ); auto rootFolders = Folder::fetchRootFolders( m_ml );
for ( const auto& f : rootFolders ) for ( const auto& f : rootFolders )
{
// fetchRootFolders only returns present folders
assert( f->isPresent() == true );
reloadFolder( f ); reloadFolder( f );
}
return true; return true;
} }
......
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