Skip to content
Snippets Groups Projects
Commit 8c56e26c authored by Duncan McNamara's avatar Duncan McNamara Committed by Alaric Senat
Browse files

DiscovererWorker: fix roots rename

This caused the the addRoot to fail because of the missing trailing '/',
the folder would not match any mountpoint, and isn't added in db,
failing any attempt at discovery / reload.

(cherry picked from commit 3fd80d50)
parent 000da125
No related branches found
No related tags found
No related merge requests found
......@@ -108,8 +108,8 @@ bool DiscovererWorker::discover( const std::string& root )
return false;
auto path = utils::file::toFolderPath( root );
LOG_INFO( "Adding ", path, " to the folder discovery list" );
enqueue( root, Task::Type::AddRoot );
enqueue( root, Task::Type::Reload );
enqueue( path, Task::Type::AddRoot );
enqueue( path, Task::Type::Reload );
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment