From: Michael Stapelberg Date: Sat, 21 Jan 2012 21:59:12 +0000 (+0000) Subject: Bugfix: Also delete callbacks which are triggered due to an error X-Git-Tag: 4.14~14^2~21 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3a9024de63f92066e74c11684511e7ecc7538fc7;p=i3%2Fi3 Bugfix: Also delete callbacks which are triggered due to an error --- 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