initialize kid_count to 0; minor log tweak
authorBill Erickson <berick@esilibrary.com>
Tue, 8 Oct 2013 17:37:54 +0000 (13:37 -0400)
committerBill Erickson <berick@esilibrary.com>
Fri, 8 Aug 2014 14:08:36 +0000 (10:08 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
SIPServer.pm

index 495cb98..38a1f64 100644 (file)
@@ -170,7 +170,7 @@ sub process_request {
 # Multiplex.
 
 my %kid_hash;
-my $kid_count;
+my $kid_count = 0;
 
 sub REAPER {
   for (keys(%kid_hash)) {
@@ -299,7 +299,7 @@ sub mux_input {
 sub mux_close {
     my ($self, $mux, $fh) = @_;
     delete $active_connections{''.$fh};
-    syslog("LOG_DEBUG", "multi: cleaning up child: $fh; ". 
+    syslog("LOG_DEBUG", "multi: mux_close cleaning up child: $fh; ". 
         scalar(keys %active_connections)." remain");
 }