X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FTask%2FConnect.pm;h=5080a7adbe71010628d97fc6deb69e182b305141;hb=e3c566f5dd0b8c5975f5c9513bf90ef024010149;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..5080a7a 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.6 2006-11-02 16:11:44 mike Exp $ # See ZOOM/IRSpy/Task/Search.pm for documentation @@ -20,15 +20,15 @@ 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")); + warn "no ZOOM-C level events queued by $this" + if $conn->is_idle(); + + $this->set_options(); } sub render {