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)
commit5afbaa12a9aef6bde35819ab312e0e2a8081905f
treeb4ae84873f887fadc61e258da5ce54fdc3dcb954
parent34fd524e6436cd1bfa7e9b8493227eadbd68cb28
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