Catch all ZOOM::event() return values less than 1. This includes -4
authorMike Taylor <mike@indexdata.com>
Thu, 22 Feb 2007 11:51:58 +0000 (11:51 +0000)
committerMike Taylor <mike@indexdata.com>
Thu, 22 Feb 2007 11:51:58 +0000 (11:51 +0000)
commitecf314f42f1113d64e0ca048997dbeb55b2a8d1a
tree7c42edb86770f2f589b2c5b2e8ec7df16351f3e7
parent4106328950233f27c6e8fdf0e94e8fab8bc7761e
Catch all ZOOM::event() return values less than 1.  This includes -4
(too many connections), which was the cause of the busy-loop
failure when testing all targets.
Final play-out of left-over events also avoids busy looping on
unexpected negative return-value.
Do not re-enter main loop after initial exit.
lib/ZOOM/IRSpy.pm