From b0ec9508f1088d30b3359d602c1791ca5c9a4b54 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 13 Feb 2007 15:02:35 +0000 Subject: [PATCH] Do not go back into main loop if peek_event() is either 0 or ZEND. --- lib/ZOOM/IRSpy.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 1.7.10.4