Skip to content

Commit

Permalink
fix: dont modify canLaunchInDebug when not testing
Browse files Browse the repository at this point in the history
  • Loading branch information
reisxd committed Apr 20, 2024
1 parent 7a2b522 commit 7960882
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tizenbrew-app/TizenBrew/service/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,18 @@ module.exports.onStart = function () {

adb._stream.on('error', (e) => {
console.log('ADB connection error. ' + e);
clearTimeout(timeout);
canLaunchInDebug = false;
if (testConnection) {
clearTimeout(timeout);
canLaunchInDebug = false;
}
});
adb._stream.on('close', () => {
console.log('ADB connection closed.');
clearTimeout(timeout);
canLaunchInDebug = false;
if (testConnection) {
clearTimeout(timeout);
canLaunchInDebug = false;
}
});

}
Expand Down

0 comments on commit 7960882

Please sign in to comment.