Skip to content

Commit

Permalink
Update to inotify 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
passcod committed Dec 22, 2014
1 parent 55c8d7b commit fcda20b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "notify"
version = "1.0.2"
version = "1.0.3"
authors = ["Félix Saparelli <[email protected]>"]

description = "Cross-platform filesystem notification library"
Expand All @@ -20,5 +20,4 @@ keywords = [
time = "*"

[target.x86_64-unknown-linux-gnu.dependencies.inotify]
git = "https://github.com/hannobraun/inotify-rs.git"
version = "0.0.1"
version = "0.1"
8 changes: 5 additions & 3 deletions src/inotify/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ impl INotifyWatcher {
let paths = self.paths.clone();
spawn(move || {
loop {
match ino.event() {
Ok(e) => {
handle_event(e, &tx, &paths)
match ino.wait_for_events() {
Ok(es) => {
for e in es.iter() {
handle_event(e.clone(), &tx, &paths)
}
},
Err(e) => {
match e.kind {
Expand Down

0 comments on commit fcda20b

Please sign in to comment.