3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-19 10:29:30 +01:00

Fix ^C logger handling

This commit is contained in:
Pragmatic Software 2021-06-12 02:18:59 -07:00
parent b91fc6ec64
commit f364317334

View File

@ -283,7 +283,7 @@ sub register_signal_handlers {
$SIG{INT} = sub { $SIG{INT} = sub {
my $msg = "SIGINT received, exiting immediately.\n"; my $msg = "SIGINT received, exiting immediately.\n";
if (exists $self->{pbot}->{logger}) { if (exists $self->{logger}) {
$self->{logger}->log($msg); $self->{logger}->log($msg);
} else { } else {
print $msg; print $msg;