Skip to content

Commit 5ad3ef7

Browse files
author
Tony Crisci
committed
fix unsubscribe
1 parent 995e35c commit 5ad3ef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

i3ipc/i3ipc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def subscribe(self, detailed_event, handler):
272272
'handler': handler})
273273

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

277277
def emit(self, event, data):
278278
detail = ''

0 commit comments

Comments
 (0)