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

FsDiscoverer: Don't try to reload an entrypoint on a missing device

parent 1deb6c68
......@@ -156,6 +156,12 @@ bool FsDiscoverer::reload( const std::string& entryPoint )
LOG_ERROR( "Can't reload ", entryPoint, ": folder wasn't found in database" );
return false;
}
if ( folder->isPresent() == false )
{
LOG_INFO( "Folder ", entryPoint, " isn't present, and therefore won't "
"be reloaded" );
return false;
}
reloadFolder( std::move( folder ) );
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