X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=lib%2FZOOM%2FPod.pm;h=280f099e97c2a3b6a05e8d2cddd009acbf940dbb;hp=f24157b68f533add6116fc97eaea11d6575ecaed;hb=cd504127198fc48b6b927cd98f460cf3d62c9e98;hpb=b246f78aede100aba0dd50576a90298465acd634 diff --git a/lib/ZOOM/Pod.pm b/lib/ZOOM/Pod.pm index f24157b..280f099 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.20 2006-09-27 12:40:44 mike Exp $ package ZOOM::Pod; @@ -8,7 +8,7 @@ use warnings; use ZOOM; BEGIN { - # Just register the name + # Just register the names: this doesn't turn the levels on ZOOM::Log::mask_str("pod"); ZOOM::Log::mask_str("pod_unhandled"); } @@ -205,8 +205,7 @@ sub callback { my($event, $sub) = @_; my $old = $this->{callback}->{$event}; - $this->{callback}->{$event} = $sub - if defined $sub; + $this->{callback}->{$event} = $sub; return $old; } @@ -295,6 +294,7 @@ sub wait { } } + last if @conn == 0; my $i0 = ZOOM::event(\@conn); last if $i0 == 0; my $i = 1+$idxmap[$i0-1];