Skip to content

Commit de3d100

Browse files
committed
Force close control socket.
1 parent 6091ae6 commit de3d100

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/controlSocket.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export class ControlSocket {
5858
s.end()
5959
})
6060
s.on('data', data => {
61+
s.destroy()
6162
resolve(data.toString())
6263
})
6364
s.on('error', error => {
@@ -95,6 +96,7 @@ export class ControlSocket {
9596
s.end()
9697
})
9798
s.on('data', data => {
99+
s.destroy()
98100
resolve(data.toString())
99101
})
100102
s.on('error', error => {

0 commit comments

Comments
 (0)