From: Mike Taylor Date: Wed, 7 Mar 2007 18:00:15 +0000 (+0000) Subject: Reconnect before each task. X-Git-Tag: CPAN-v1.02~547 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=edb23ccd5f488130d567e836f2bd05585a323a70;p=irspy-moved-to-github.git Reconnect before each task. --- diff --git a/lib/ZOOM/IRSpy/Task/Retrieve.pm b/lib/ZOOM/IRSpy/Task/Retrieve.pm index 095fe02..1022235 100644 --- a/lib/ZOOM/IRSpy/Task/Retrieve.pm +++ b/lib/ZOOM/IRSpy/Task/Retrieve.pm @@ -1,4 +1,4 @@ -# $Id: Retrieve.pm,v 1.3 2006-11-02 16:11:44 mike Exp $ +# $Id: Retrieve.pm,v 1.4 2007-03-07 18:00:15 mike Exp $ package ZOOM::IRSpy::Task::Retrieve; @@ -40,6 +40,8 @@ sub run { $this->set_options(); my $conn = $this->conn(); + $conn->connect($conn->option("host")); + my $rs = $this->{rs}; my $index0 = $this->{index0}; $this->irspy()->log("irspy_task", $conn->option("host"),