It is possible (although very dumb) to set kid_serial_sleep to 0, so base our decisio...
authorGreg Sabino Mullane <greg@endpoint.com>
Wed, 24 Oct 2012 03:40:52 +0000 (23:40 -0400)
committerGreg Sabino Mullane <greg@endpoint.com>
Wed, 24 Oct 2012 03:40:52 +0000 (23:40 -0400)
Bucardo.pm

index 2d4fb881b6ef974bb3b3450452b73dd724195000..9e4b82adb626cea3a9160c5fe62ed21f0fbf4a38 100644 (file)
@@ -2140,7 +2140,7 @@ sub start_kid {
         $msg .= "\nLine: $line";
 
         ## If we had a serialization error, sleep a hair before retrying
-        my $gotosleep = 0;
+        my $gotosleep;
 
         ## Subject line tweaking later on
         my $moresub = '';
@@ -2245,7 +2245,7 @@ sub start_kid {
         }
 
         ## Sleep if we figured out we should above (e.g. serialization error)
-        sleep $gotosleep if $gotosleep;
+        sleep $gotosleep if defined $gotosleep;
 
         ## Send an email as needed (never for clean exit)
         if (! $self->{clean_exit} and $self->{sendmail} or $self->{sendmail_file}) {