Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: disconnect event for bandwidth stats
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
  • Loading branch information
Alan Shaw committed Jan 31, 2019
1 parent ff6fb0b commit e630a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/api/resources/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ exports.bw = async (request, h) => {
}
})

request.on('disconnect', () => {
request.events.on('disconnect', () => {
res.destroy()
})

Expand Down

0 comments on commit e630a7e

Please sign in to comment.