Skip to content

Commit

Permalink
Go into standby if unable to contact OctoPrint
Browse files Browse the repository at this point in the history
  • Loading branch information
harleyg321 committed Apr 2, 2020
1 parent 582eea4 commit 8deee98
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/printer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ export class PrinterService {
);
}
});
} else if (error.status === 0) {
this.router.navigate(['/standby']);
this.notificationService.disableNotifications();
} else {
const printerStatus: PrinterStatusAPI = {
status: `error (${error.status})`,
Expand Down

0 comments on commit 8deee98

Please sign in to comment.