Skip to content

Commit eef93d6

Browse files
committed
.on('close') instead of .onclose =
1 parent 10c7f1c commit eef93d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cp.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ export class Cp {
6767
},
6868
)
6969
.then((conn) => {
70-
conn.onclose = (event) => {
70+
conn.on('close', () => {
7171
resolve();
72-
};
72+
});
7373
})
7474
.catch(reject);
7575
});
@@ -121,9 +121,9 @@ export class Cp {
121121
},
122122
)
123123
.then((conn) => {
124-
conn.onclose = (event) => {
124+
conn.on('close', () => {
125125
resolve();
126-
};
126+
});
127127
})
128128
.catch(reject);
129129
});

0 commit comments

Comments
 (0)