zeromq/jeromq — pull request #9 by ipechorin (2012-10-26 14:11:20+00:00)
Title: fix issue#8: adding zloop timer from another timer is broken

We cannot touch ZLoop's "timers" when adding a timer because we may be executing that from inside the poll loop, and timers' iterator throws ConcurrentModificationException. So, we hold the new timer on the newTimers list, and process that list when we're done executing timers.

This change fixes https://github.com/zeromq/jeromq/issues/8