Skip to content

Commit

Permalink
Emit close event when RTSPClient close
Browse files Browse the repository at this point in the history
  • Loading branch information
GyeongHoKim committed Jun 10, 2024
1 parent 8a2760b commit 90a6976
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/RTSPClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export default class RTSPClient extends EventEmitter {

const closeListener = () => {
client.removeListener("close", closeListener);
this.emit("close");
this.close(true);
};

Expand Down

0 comments on commit 90a6976

Please sign in to comment.