X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FTask%2FConnect.pm;h=117f06203953a183c366ff76734e2b372641036c;hp=1bfb8c4c4ca50c4290410ecbe0899110242a6bc3;hb=e61887a109576fa0e066547c0ce033631a290f8f;hpb=880bb74a2cc77e58aa99cbaeb300435316417e76 diff --git a/lib/ZOOM/IRSpy/Task/Connect.pm b/lib/ZOOM/IRSpy/Task/Connect.pm index 1bfb8c4..117f062 100644 --- a/lib/ZOOM/IRSpy/Task/Connect.pm +++ b/lib/ZOOM/IRSpy/Task/Connect.pm @@ -1,4 +1,3 @@ -# $Id: Connect.pm,v 1.1 2006-10-06 11:33:08 mike Exp $ # See ZOOM/IRSpy/Task/Search.pm for documentation @@ -20,15 +19,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 {