Merge pull request #23 from mdevaev/master

Fixed non-blocking mode