Skip to content

Commit

Permalink
destroy leechers when the audio provider quits
Browse files Browse the repository at this point in the history
  • Loading branch information
thejh committed Dec 5, 2011
1 parent 6077585 commit 7c78290
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ function AudioLeecher(options) {
function shutdown() {
self.audioReader.removeListener('data', ondata)
self.audioReader.removeListener('end', shutdown)
self.socket.destroy()
}
this.audioReader.on('data', ondata)
this.audioReader.on('end', shutdown)
Expand Down

0 comments on commit 7c78290

Please sign in to comment.