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

Commit a897118

Browse files
author
Alan Shaw
committed
fix: disconnect event for bandwidth stats
License: MIT Signed-off-by: Alan Shaw <[email protected]>
1 parent a84b5f1 commit a897118

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http/api/resources/stats.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ exports.bw = async (request, h) => {
3333
}
3434
})
3535

36-
request.on('disconnect', () => {
36+
request.events.on('disconnect', () => {
3737
res.destroy()
3838
})
3939

0 commit comments

Comments
 (0)