Skip to content

Commit

Permalink
fix: don't retry roots if our first failed
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Bassett <craig.bassett@gmail.com>
  • Loading branch information
cadriel committed Jul 9, 2021
1 parent fef4613 commit 4f86713
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ export const appInit = async (apiConfig?: ApiConfig, hostConfig?: HostConfig): P
let apiConnected = true
let apiAuthenticated = true
const roots: { [index: string]: any } = Globals.MOONRAKER_DB.ROOTS
if (apiConnected && apiAuthenticated) {
for (const key in roots) {
for (const key in roots) {
if (apiConnected && apiAuthenticated) {
const root = roots[key]
let d = {}
if (apiConfig.apiUrl !== '' && apiConfig.socketUrl !== '') {
Expand Down

0 comments on commit 4f86713

Please sign in to comment.