Skip to content

Commit

Permalink
fix: remove ffmpeg listeners with node 8 compatible method
Browse files Browse the repository at this point in the history
  • Loading branch information
dgreif committed Aug 24, 2019
1 parent 6719e4a commit 96c27ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/sip-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,8 @@ export class SipSession {
ff.stdout.pause()
ff.kill()

process.off('SIGINT', exitHandler)
process.off('exit', exitHandler)
process.removeListener('SIGINT', exitHandler)
process.removeListener('exit', exitHandler)
releasePort(audioPort)
releasePort(videoPort)
}
Expand Down

0 comments on commit 96c27ac

Please sign in to comment.