From: Mike Taylor Date: Tue, 25 Jul 2006 16:51:22 +0000 (+0000) Subject: Fall out of wait() when there are no active connections left. X-Git-Tag: CPAN-v1.02~54^2~1095 X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=commitdiff_plain;h=087d286130ff54c827c1d490ee9be55286476882;ds=sidebyside Fall out of wait() when there are no active connections left. --- diff --git a/lib/ZOOM/Pod.pm b/lib/ZOOM/Pod.pm index f24157b..5c554ec 100644 --- a/lib/ZOOM/Pod.pm +++ b/lib/ZOOM/Pod.pm @@ -1,4 +1,4 @@ -# $Id: Pod.pm,v 1.17 2006-07-21 11:25:43 mike Exp $ +# $Id: Pod.pm,v 1.18 2006-07-25 16:51:22 mike Exp $ package ZOOM::Pod; @@ -295,6 +295,7 @@ sub wait { } } + last if @conn == 0; my $i0 = ZOOM::event(\@conn); last if $i0 == 0; my $i = 1+$idxmap[$i0-1];