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: AnyEvent-0.10~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=110d4676f53a4e207606283c3bba1c44cc1ea04a;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