X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FTask%2FConnect.pm;h=d0980dcc34ecf05ebff0863bb7ddb26ebe7aef2c;hb=6ca17273c80cf95bdd4f7ccefbf420460b9eb3a4;hp=1bfb8c4c4ca50c4290410ecbe0899110242a6bc3;hpb=a8be7db5305925fc720f3dac7e6afc8fba7b9e60;p=irspy-moved-to-github.git diff --git a/lib/ZOOM/IRSpy/Task/Connect.pm b/lib/ZOOM/IRSpy/Task/Connect.pm index 1bfb8c4..d0980dc 100644 --- a/lib/ZOOM/IRSpy/Task/Connect.pm +++ b/lib/ZOOM/IRSpy/Task/Connect.pm @@ -1,4 +1,4 @@ -# $Id: Connect.pm,v 1.1 2006-10-06 11:33:08 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,15 +20,13 @@ 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")); + + $this->set_options(); } sub render {