Skip to content

Commit

Permalink
Merge branch 'progress-monitor'
Browse files Browse the repository at this point in the history
  • Loading branch information
ckrause committed May 3, 2022
2 parents ad0fd37 + 14ae94b commit 11612b2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ To install or update LODA, please follow the [installation instructions](https:/

## [Unreleased]

# v22.5.3

### Bugfixes

* Fixes setup issues when runing in BOINC

# v22.5.2

### Enhancements
Expand Down
6 changes: 4 additions & 2 deletions src/boinc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ void Boinc::run() {
// clone programs repository if necessary
if (!Setup::existsProgramsHome()) {
FolderLock lock(project_dir);
if (!Setup::cloneProgramsHome()) {
Log::get().error("Cannot clone programs repository", true);
if (!Setup::existsProgramsHome()) { // need to check again here
if (!Setup::cloneProgramsHome()) {
Log::get().error("Cannot clone programs repository", true);
}
}
}

Expand Down
3 changes: 3 additions & 0 deletions src/setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ MiningMode convertStrToMiningMode(const std::string& str) {
}

std::string Setup::getLodaHomeNoCheck() {
if (!LODA_HOME.empty()) {
return LODA_HOME;
}
auto loda_home = std::getenv("LODA_HOME");
std::string result;
if (loda_home) {
Expand Down

0 comments on commit 11612b2

Please sign in to comment.