]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Also delete callbacks which are triggered due to an error
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 21 Jan 2012 21:59:12 +0000 (21:59 +0000)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 19 Aug 2017 16:13:19 +0000 (18:13 +0200)
lib/AnyEvent/I3.pm

index 6b8f905ba77fd375429d21244c0755cc721f16f1..6c7dbd1297ad8ae7be4cdcc0d2f6c7839956fd5f 100644 (file)
@@ -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