Skip to content

Commit

Permalink
Merge pull request #852 from subutai-io/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
crioto authored Apr 16, 2018
2 parents f11b663 + 3849613 commit 689ebae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
16 changes: 0 additions & 16 deletions hub/src/HubController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,6 @@ CHubController::on_environments_updated_sl(std::vector<CEnvironment> lst_environ
} else {
qInfo("Failed to re-login. %d - %d - %d",
lhttp, lerr, lnet);
m_lst_healthy_environments.clear();
m_lst_environments.clear();
m_lst_environments_internal.clear();
emit environments_updated(rer_res);
return;
}
}
Expand All @@ -184,10 +180,6 @@ CHubController::on_environments_updated_sl(std::vector<CEnvironment> lst_environ
"Refresh environments failed. Err_code : %d, Net_err : %d", err_code,
network_error);
rer_res = RER_ERROR;
m_lst_healthy_environments.clear();
m_lst_environments.clear();
m_lst_environments_internal.clear();
emit environments_updated(rer_res);
return;
}

Expand All @@ -197,20 +189,12 @@ CHubController::on_environments_updated_sl(std::vector<CEnvironment> lst_environ
tr("Refresh environments error : %1")
.arg(CRestWorker::rest_err_to_str((rest_error_t)err_code));
CNotificationObserver::Error(err_msg, DlgNotification::N_NO_ACTION);
m_lst_healthy_environments.clear();
m_lst_environments.clear();
m_lst_environments_internal.clear();
rer_res = RER_ERROR;
emit environments_updated(rer_res);
return;
}

if (network_error != 0) {
m_lst_healthy_environments.clear();
m_lst_environments.clear();
m_lst_environments_internal.clear();
rer_res = RER_ERROR;
emit environments_updated(rer_res);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion hub/src/PeerController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void CPeerController::check_logs(){
}
}
if(deleted_flag){
if(!peers_dir.removeRecursively())
if(!peer_dir.removeRecursively())
CNotificationObserver::Error(tr("Failed to clean peer path"), DlgNotification::N_NO_ACTION);
finish_current_update();
refresh();
Expand Down

0 comments on commit 689ebae

Please sign in to comment.