Skip to content

Commit 33976d8

Browse files
fix: LiveSync to Android hangs for 30 seconds
When LiveSync operation is executed, CLI tries to connect to device socket for 30 seconds. In case it succeeds, the timer is not stopped and this keeps the process alive for 30 seconds.
1 parent 64683af commit 33976d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/services/livesync/android-livesync-tool.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ export class AndroidLivesyncTool implements IAndroidLivesyncTool {
346346
socket.removeListener("close", tryConnectAfterTimeout);
347347
socket.removeListener("error", tryConnectAfterTimeout);
348348
isConnected = true;
349+
clearTimeout(connectionTimer);
349350
resolve({ socket, data });
350351
});
351352
socket.on("close", tryConnectAfterTimeout);

0 commit comments

Comments
 (0)