Call ->set_options()
[irspy-moved-to-github.git] / lib / ZOOM / IRSpy / Task / Connect.pm
index 1bfb8c4..4c46053 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Connect.pm,v 1.1 2006-10-06 11:33:08 mike Exp $
+# $Id: Connect.pm,v 1.4 2006-10-25 10:54:43 mike Exp $
 
 # See ZOOM/IRSpy/Task/Search.pm for documentation
 
@@ -20,14 +20,10 @@ sub new {
 sub run {
     my $this = shift();
 
+    $this->set_options();
+
     my $conn = $this->conn();
-    $this->irspy()->log("irspy_test", $conn->option("host"),
-                       " connecting");
-    # Actually, connections have already been connected.  Redoing this
-    # won't hurt -- in fact, it's a no-op.  But because it's a no-op,
-    # it doesn't cause any events, which means that the very next call
-    # of ZOOM::event() will return 0, and IRSpy will fall through the
-    # event loop.  Not good.  Not sure how to fix this.
+    $conn->log("irspy_task", "connecting");
     $conn->connect($conn->option("host"));
 }