FIX ISSUE #4

wait a bit in the the select loop for not consuming 100% CPU
Merge pull request #5 from jvermillard/master

FIX ISSUE #4