proxy: remove hooks in _destroy
Callers of _destroy should be able to reply on the fact that no more events will be emited on the proxy whitout being required to remove the hooks themselves. Because of the refcount in the proxy, it can stay alive after the _destroy and being used to emit events, like emit an error in protocol-native. Fixes #366
Loading
Please register or sign in to comment