Reconnect before each task.
[irspy-moved-to-github.git] / lib / ZOOM / IRSpy / Task / Retrieve.pm
index e0ed1f4..1022235 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Retrieve.pm,v 1.2 2006-10-25 17:16:14 mike Exp $
+# $Id: Retrieve.pm,v 1.4 2007-03-07 18:00:15 mike Exp $
 
 package ZOOM::IRSpy::Task::Retrieve;
 
@@ -40,11 +40,15 @@ 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"),
                        " retrieving record $index0 from $rs");
     $rs->records($index0, 1, 0); # requests record
+    warn "no ZOOM-C level events queued by $this"
+       if $conn->is_idle();
 
     $this->set_options();
 }