Rework DXCron::spawn for Mojo
[spider.git] / perl / DXLog.pm
index ede817aa446fdae1dc89ae634488401206bc74d5..1113bc247b2d0a58d412d80104a18987320cb225 100644 (file)
@@ -148,6 +148,7 @@ sub unixtoj($$)
 sub write($$$)
 {
        my ($self, $jdate, $line) = @_;
+       return unless $self && $jdate;
        if (!$self->{fh} || 
                $self->{mode} ne ">>" || 
                $jdate->year != $self->{jdate}->year ||