Skip to content

Commit 7a551b7

Browse files
committed
Fix android connection closing
1 parent 9571ea1 commit 7a551b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nativescript/android/androidDebugConnection.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ class ResReqNetSocket extends EventEmitter {
206206
}
207207

208208
public close() {
209-
this.conn.end();
209+
if (this.conn) {
210+
this.conn.end();
211+
}
210212
}
211213
}
212214

0 commit comments

Comments
 (0)