X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FTask%2FConnect.pm;h=4c460531bf6b74d81964b9899382b8b6f4164532;hp=1bfb8c4c4ca50c4290410ecbe0899110242a6bc3;hb=ae94c0308147f8c8db1cd9aafc7ba6c24de2e42d;hpb=a8be7db5305925fc720f3dac7e6afc8fba7b9e60 diff --git a/lib/ZOOM/IRSpy/Task/Connect.pm b/lib/ZOOM/IRSpy/Task/Connect.pm index 1bfb8c4..4c46053 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.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")); }