add event dispose
This commit is contained in:
parent
5be1c81952
commit
e1ad339581
@ -44,6 +44,10 @@ class Client{
|
||||
this.callback_message_queue[key](new Error('close connect'))
|
||||
delete this.callback_message_queue[key]
|
||||
})
|
||||
['server.peers.subscribe',
|
||||
'blockchain.numblocks.subscribe',
|
||||
'blockchain.headers.subscribe',
|
||||
'blockchain.address.subscribe'].forEach(event => this.subscribe.removeAllListeners(event))
|
||||
})
|
||||
conn.on('data', (chunk) => {
|
||||
this.mp.run(chunk)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user