X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FAGWMsg.pm;h=90f469d82afe107d174bbaefcb904a115c6a495a;hb=71620f62f33c447fbc6e54e8c2681b8742e421a6;hp=4d1068ff35707ca813b03d5ad2dbf86d7da07705;hpb=1a704d7335183775146b29a32973961a4b799f87;p=spider.git diff --git a/perl/AGWMsg.pm b/perl/AGWMsg.pm index 4d1068ff..90f469d8 100644 --- a/perl/AGWMsg.pm +++ b/perl/AGWMsg.pm @@ -51,8 +51,11 @@ $connectinterval = 60; sub init { return unless $enable; - $rproc = shift; + # only set $rproc if there is something to set rproc from! + my $rp = shift; + $rproc = $rp if defined $rp; + finish(); dbg("AGW initialising and connecting to $addr/$port ...");