fix for infinite loop if device is not available
Merge pull request #4 from srautiai/master

fix for infinite loop if device is not available