Skip to content

Commit 1daa553

Browse files
authored
fix(android): livesync tool connect race condition (#5857)
1 parent 7dcca97 commit 1daa553

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,9 @@ export class AndroidLivesyncTool implements IAndroidLivesyncTool {
475475
this.pendingConnectionData.socketTimer = setTimeout(tryConnect, 1000);
476476
};
477477

478-
this.pendingConnectionData.socket = socket;
478+
if (this.pendingConnectionData) {
479+
this.pendingConnectionData.socket = socket;
480+
}
479481

480482
socket.once("data", (data) => {
481483
socket.removeListener("close", tryConnectAfterTimeout);

0 commit comments

Comments
 (0)