From 3a9024de63f92066e74c11684511e7ecc7538fc7 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 21 Jan 2012 21:59:12 +0000 Subject: [PATCH] Bugfix: Also delete callbacks which are triggered due to an error --- lib/AnyEvent/I3.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/AnyEvent/I3.pm b/lib/AnyEvent/I3.pm index 6b8f905b..6c7dbd12 100644 --- a/lib/AnyEvent/I3.pm +++ b/lib/AnyEvent/I3.pm @@ -147,6 +147,7 @@ sub connect { for my $type (keys %{$cb}) { next if ($type & $event_mask) == $event_mask; $cb->{$type}->(); + delete $cb->{$type}; } # Trigger _error callback, if set -- 2.39.5