tvheadend/tvheadend — pull request #488 by dreamcat4 (2014-09-22 15:54:58+00:00)
Title: Fixes #2261. This bug occurs because the previous call to tvhpoll_remove...

...(3) does not clear (zero-out) or remove deleted events, which are being stored as an array, not a linked-list. And kevent() does not see any reason to wait on invalid events that are of deleted status (type EV_DELETE).