From 7960882c094b53f590127913c5cc6d2893624091 Mon Sep 17 00:00:00 2001 From: reisxd <29177546+reisxd@users.noreply.github.com> Date: Sat, 20 Apr 2024 08:51:00 +0300 Subject: [PATCH] fix: dont modify canLaunchInDebug when not testing --- tizenbrew-app/TizenBrew/service/service.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tizenbrew-app/TizenBrew/service/service.js b/tizenbrew-app/TizenBrew/service/service.js index 4d31c96..cf2aa2c 100644 --- a/tizenbrew-app/TizenBrew/service/service.js +++ b/tizenbrew-app/TizenBrew/service/service.js @@ -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; + } }); }