{"action":"opened","issue":{"url":"https://api.github.com/repos/passcod/rsnotify/issues/28","labels_url":"https://api.github.com/repos/passcod/rsnotify/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/passcod/rsnotify/issues/28/comments","events_url":"https://api.github.com/repos/passcod/rsnotify/issues/28/events","html_url":"https://github.com/passcod/rsnotify/issues/28","id":104167438,"number":28,"title":"try_recv'ing panics","user":{"login":"alvaro-cuesta","id":1827495,"avatar_url":"https://avatars.githubusercontent.com/u/1827495?v=3","gravatar_id":"","url":"https://api.github.com/users/alvaro-cuesta","html_url":"https://github.com/alvaro-cuesta","followers_url":"https://api.github.com/users/alvaro-cuesta/followers","following_url":"https://api.github.com/users/alvaro-cuesta/following{/other_user}","gists_url":"https://api.github.com/users/alvaro-cuesta/gists{/gist_id}","starred_url":"https://api.github.com/users/alvaro-cuesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvaro-cuesta/subscriptions","organizations_url":"https://api.github.com/users/alvaro-cuesta/orgs","repos_url":"https://api.github.com/users/alvaro-cuesta/repos","events_url":"https://api.github.com/users/alvaro-cuesta/events{/privacy}","received_events_url":"https://api.github.com/users/alvaro-cuesta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-01T01:53:39Z","updated_at":"2015-09-01T01:53:39Z","closed_at":null,"body":"I'm trying to receive events from the watcher using [`try_recv`](https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.try_recv) but it panics.\r\n\r\n    thread '<unnamed>' panicked at 'Failed to convert C string into Rust string: invalid utf-8: invalid byte near index 1', /home/travis/.cargo/registry/src/github.com-0a35038f75765ae4/inotify-0.1.12/src/wrapper.rs:168\r\n\r\nI'm using `try_recv` because I don't want to block my main thread if the channel is empty.\r\n\r\nAm I doing concurrency wrong? Any viable workarounds until a fix comes?\r\n"}}