Skip to content

Commit

Permalink
Merge pull request #998 from ubports/connection-lost
Browse files Browse the repository at this point in the history
Fail gracefully for more connection lost errors
  • Loading branch information
NeoTheThird authored Nov 4, 2019
2 parents 4fb889c + 099a818 commit 79c26b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,9 @@ function assembleInstallSteps(steps) {
if (
error &&
(error.includes("no device") ||
error.includes("No such device"))
error.includes("device offline") ||
error.includes("No such device") ||
error.includes("connection lost"))
) {
mainEvent.emit("user:connection-lost", runStep);
} else if (error && error.includes("Killed")) {
Expand Down

0 comments on commit 79c26b4

Please sign in to comment.