Skip to content

Commit

Permalink
fixed a hanging, uninformative log
Browse files Browse the repository at this point in the history
  • Loading branch information
justinasRm committed Sep 17, 2024
1 parent 89a1eb6 commit 869cd11
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/sdk-tizen/src/deviceManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,14 @@ export const launchTizenEmulator = async (name: string | true): Promise<boolean>

name = chosenEmulator;
}

if (name) {
if (name && typeof name === 'string') {
const ipRegex = /^(?:\d{1,3}\.){3}\d{1,3}:\d{1,5}$/;
if (name !== true && ipRegex.test(name)) {
if (ipRegex.test(name)) {
// if ip is chosen, real device boot should start
logInfo('Connecting to device');
c.runtime.target = name.split(':')[0];
await runTizenSimOrDevice();
return true;
return new Promise(() => logInfo('Device is launched.'));
}
try {
await executeAsync(
Expand Down Expand Up @@ -430,8 +429,7 @@ Please create one and then edit the default target from ${c.paths.workspace.dir}
await execCLI(CLI_TIZEN, `package -- "${intermediate}" -s ${certProfile} -t wgt -o "${tOut}"`);

try {
// const packageID = platform === 'tizenwatch' || platform === 'tizenmobile' ? tId.split('.')[0] : tId;
const packageID = tId;
const packageID = platform === 'tizenwatch' || platform === 'tizenmobile' ? tId.split('.')[0] : tId;
await execCLI(CLI_TIZEN, `uninstall -p ${packageID} -t ${deviceID}`, {
ignoreErrors: true,
});
Expand Down

0 comments on commit 869cd11

Please sign in to comment.