mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 13:59:47 +01:00
EventDispatcher: no longer remove handlers on error
This commit is contained in:
parent
68994f0d8b
commit
b89d41796f
@ -52,8 +52,8 @@ sub dispatch_event {
|
|||||||
if ($@) {
|
if ($@) {
|
||||||
chomp $@;
|
chomp $@;
|
||||||
$self->{pbot}->{logger}->log("Error in event handler: $@\n");
|
$self->{pbot}->{logger}->log("Error in event handler: $@\n");
|
||||||
$self->{pbot}->{logger}->log("Removing handler.\n");
|
#$self->{pbot}->{logger}->log("Removing handler.\n");
|
||||||
splice @{$self->{handlers}->{$event_type}}, $i--, 1;
|
#splice @{$self->{handlers}->{$event_type}}, $i--, 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $ret if $ret;
|
return $ret if $ret;
|
||||||
@ -72,8 +72,8 @@ sub dispatch_event {
|
|||||||
if ($@) {
|
if ($@) {
|
||||||
chomp $@;
|
chomp $@;
|
||||||
$self->{pbot}->{logger}->log("Error in event handler: $@\n");
|
$self->{pbot}->{logger}->log("Error in event handler: $@\n");
|
||||||
$self->{pbot}->{logger}->log("Removing handler.\n");
|
#$self->{pbot}->{logger}->log("Removing handler.\n");
|
||||||
splice @{$self->{handlers}->{any}}, $i--, 1;
|
#splice @{$self->{handlers}->{any}}, $i--, 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $ret if $ret;
|
return $ret if $ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user