Skip to content

Commit

Permalink
fix unsubscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Crisci committed Apr 6, 2018
1 parent 995e35c commit 5ad3ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion i3ipc/i3ipc.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def subscribe(self, detailed_event, handler):
'handler': handler})

def unsubscribe(self, handler):
self._subscriptions = list(filter(lambda s: s['handler'] is handler, self._subscriptions))
self._subscriptions = list(filter(lambda s: s['handler'] != handler, self._subscriptions))

def emit(self, event, data):
detail = ''
Expand Down

0 comments on commit 5ad3ef7

Please sign in to comment.