Skip to content

Commit

Permalink
Retry settings if settings are the same but cloudfuse is not mounted (#…
Browse files Browse the repository at this point in the history
…34)

* Retry settings if settings are the same but cloudfuse is not mounted

* Clang-format file
  • Loading branch information
jfantinhardesty authored Jul 23, 2024
1 parent 7d0c2ec commit d598a69
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/plugin/settings/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,13 @@ bool Engine::processActiveSettings(Json::object *model, std::map<std::string, st

bool Engine::settingsChanged()
{
// If cloudfuse is not mounted and settings are the same, then return true so
// it tries to mount again.
if (!cfManager.isMounted())
{
return true;
}

std::map<std::string, std::string> prevValues = prevSettings();
std::map<std::string, std::string> newValues = currentSettings();
if (newValues == prevValues)
Expand Down

0 comments on commit d598a69

Please sign in to comment.