1

Merge branch 'master' into update_teapot_bot_lib_to_api_v5.1

This commit is contained in:
eleksir
2021-04-22 19:47:58 +03:00
11 changed files with 317 additions and 200 deletions

View File

@@ -653,7 +653,15 @@ sub _process_message {
foreach my $listener (@{ $self->listeners }) {
# call the listener code, supplying ourself and the update
$listener->($self, $update);
my $evalRet = eval {
$listener->($self, $update);
return 1;
};
unless ($evalRet) {
cluck "An error occured during update processing: $EVAL_ERROR";
return;
}
}
return;