From: Mike Taylor Date: Tue, 13 Feb 2007 15:02:35 +0000 (+0000) Subject: Do not go back into main loop if peek_event() is either 0 or ZEND. X-Git-Tag: CPAN-v1.02~54^2~568 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=50e2800e28099aa7355faf7110a3869e5bda0e5f;p=irspy-moved-to-github.git Do not go back into main loop if peek_event() is either 0 or ZEND. --- diff --git a/lib/ZOOM/IRSpy.pm b/lib/ZOOM/IRSpy.pm index 6788402..03952fe 100644 --- a/lib/ZOOM/IRSpy.pm +++ b/lib/ZOOM/IRSpy.pm @@ -1,4 +1,4 @@ -# $Id: IRSpy.pm,v 1.59 2007-02-09 10:44:25 mike Exp $ +# $Id: IRSpy.pm,v 1.60 2007-02-13 15:02:35 mike Exp $ package ZOOM::IRSpy; @@ -509,7 +509,7 @@ sub check { $finished = 0; } my $ev = $conn->peek_event(); - if ($ev != 0) { # Or ZOOM::Event::ZEND? + if ($ev != 0 && $ev != ZOOM::Event::ZEND) { my $evstr = ZOOM::event_str($ev); $this->log("irspy", "$conn has event $ev ($evstr) waiting"); $finished = 0;