run() calls set_otions() again at the end to restore old values.
[irspy-moved-to-github.git] / lib / ZOOM / IRSpy / Task / Connect.pm
index e850681..d0980dc 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Connect.pm,v 1.2 2006-10-11 16:47:44 mike Exp $
+# $Id: Connect.pm,v 1.5 2006-10-25 13:36:02 mike Exp $
 
 # See ZOOM/IRSpy/Task/Search.pm for documentation
 
@@ -20,9 +20,13 @@ sub new {
 sub run {
     my $this = shift();
 
+    $this->set_options();
+
     my $conn = $this->conn();
-    $conn->log("irspy_test", "connecting");
+    $conn->log("irspy_task", "connecting");
     $conn->connect($conn->option("host"));
+
+    $this->set_options();
 }
 
 sub render {