Skip to content

Commit

Permalink
.on('close') instead of .onclose =
Browse files Browse the repository at this point in the history
  • Loading branch information
sjawhar committed Nov 23, 2024
1 parent 10c7f1c commit eef93d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ export class Cp {
},
)
.then((conn) => {
conn.onclose = (event) => {
conn.on('close', () => {
resolve();
};
});
})
.catch(reject);
});
Expand Down Expand Up @@ -121,9 +121,9 @@ export class Cp {
},
)
.then((conn) => {
conn.onclose = (event) => {
conn.on('close', () => {
resolve();
};
});
})
.catch(reject);
});
Expand Down

0 comments on commit eef93d6

Please sign in to comment.