FIX ISSUE #4

wait a bit in the the select loop for not consuming 100% CPU