jmettraux/ruote — pull request #65 by npj (2012-11-07 09:16:45+00:00)
Title: Another fix for wait_for

When the :or_error flag is present in the interests, the intercepted event is not always the returned event. This is because WaitLogger#check_waiting deletes the waiting thread only after double-checking the size of the interests array, which would be 1 if a match was made but the :or_error flag was the single remaining interest. This pull fixes the bug by removing the double-check so that WaitLogger#check_waiting removes the waiting thread whenever WaitLogger#matches returns true.