Skip to content

Commit

Permalink
fix: don't block connection on fresh moonraker databases
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 2a63d79 commit cc39708
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ export const appInit = async (apiConfig?: ApiConfig, hostConfig?: HostConfig): P
key,
value: {}
})
apiConnected = true
return {}
}
if (r.response && r.response.status === 401) {
// The API is technically connected, but we're un-authenticated.
Expand Down

0 comments on commit cc39708

Please sign in to comment.