fix bug where poll does not accept -1 as argument
Merge pull request #185 from zh217/poller-timeout

fix bug where poll does not accept -1 as argument