Skip to content

Commit ae4fc7c

Browse files
committed
ensure CLI exits on disconnect
1 parent 5d19643 commit ae4fc7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/espruino-cli.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ function connect(devicePath, exitCallback) {
497497
// ----------------------
498498
}, function() {
499499
log("Disconnected.");
500+
exitCallback();
500501
});
501502
} else {
502503
sendCode(function() {

0 commit comments

Comments
 (0)