From: Bill Erickson Date: Tue, 8 Oct 2013 20:01:27 +0000 (-0400) Subject: Log and exit gracefully ILS re-init failure in mux handler X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6165b6a528148569b84c41a5e80a36537c32f7f4;p=working%2FSIPServer.git Log and exit gracefully ILS re-init failure in mux handler Signed-off-by: Bill Erickson --- diff --git a/SIPServer.pm b/SIPServer.pm index d41c09c..20656f5 100644 --- a/SIPServer.pm +++ b/SIPServer.pm @@ -272,6 +272,11 @@ sub mux_input { # build the connection we deleted after logging in $self->{ils} = $active_connections{$conn_id}->{ils}->new($self->{institution}, $self->{account}); + if (!$self->{ils}) { + syslog('LOG_ERR', "Unable to build ILS module in mux child"); + exit(0); + } + # build the connection we deleted after logging in my $input = Sip::read_SIP_packet($str_fh); $input =~ s/[\r\n]+$//sm; # Strip off any trailing line ends