Fixed timeout in StreamSelectLoop

Conversion from seconds to miliseconds changed null timeout (waiting forever) to 0 timeout (don't wait at all) which caused idle application to spin event loop wildly.