Skip to content

Commit fb6c931

Browse files
Fix Android debugging
When executing `tns debug android` for slow emulators/devices we have logic to wait several seconds until debugger is attached. However we've missed to `await` the `sleep` method and in fact we are not waiting at all. Add the missing await, which fixes the `tns debug android` command.
1 parent 23a4efa commit fb6c931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/android-debug-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class AndroidDebugService extends DebugServiceBase implements IPlatformDebugServ
174174
debugerStarted = forwardsResult.indexOf(waitText) === -1;
175175

176176
if (!debugerStarted) {
177-
sleep(500);
177+
await sleep(500);
178178
}
179179
}
180180

0 commit comments

Comments
 (0)