Fix unsubscribe

This commit is contained in:
Silas Davis 2016-08-23 10:40:42 +01:00
parent 4776a7bcbe
commit 92736f22e8
No known key found for this signature in database
GPG Key ID: 4CBFD0FF2D395219
1 changed files with 1 additions and 1 deletions

View File

@ -20,6 +20,6 @@ func Subscribe(wsCtx rpctypes.WSRPCContext, event string) (*ctypes.ResultSubscri
func Unsubscribe(wsCtx rpctypes.WSRPCContext, event string) (*ctypes.ResultUnsubscribe, error) {
log.Notice("Unsubscribe to event", "remote", wsCtx.GetRemoteAddr(), "event", event)
wsCtx.GetEventSwitch().RemoveListener(event)
wsCtx.GetEventSwitch().RemoveListenerForEvent(event, wsCtx.GetRemoteAddr())
return &ctypes.ResultUnsubscribe{}, nil
}