mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-19 04:31:36 +00:00
null out bound functions
This commit is contained in:
parent
bd92a827e1
commit
36a4c2208a
@ -622,9 +622,15 @@ Server.prototype._onWebSocketClose = function (socket) {
|
|||||||
socket.peerId = null
|
socket.peerId = null
|
||||||
socket.infoHashes = null
|
socket.infoHashes = null
|
||||||
socket.onSend = null
|
socket.onSend = null
|
||||||
|
|
||||||
socket.removeListener('message', socket.onMessageBound)
|
socket.removeListener('message', socket.onMessageBound)
|
||||||
|
socket.onMessageBound = null
|
||||||
|
|
||||||
socket.removeListener('error', socket.onErrorBound)
|
socket.removeListener('error', socket.onErrorBound)
|
||||||
|
socket.onErrorBound = null
|
||||||
|
|
||||||
socket.removeListener('close', socket.onCloseBound)
|
socket.removeListener('close', socket.onCloseBound)
|
||||||
|
socket.onCloseBound = null
|
||||||
}
|
}
|
||||||
|
|
||||||
Server.prototype._onWebSocketError = function (socket, err) {
|
Server.prototype._onWebSocketError = function (socket, err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user