Skip to content

Commit

Permalink
Bump to v0.4.1.
Browse files Browse the repository at this point in the history
- Bug fix: Watcher was being de-allocated too early.
  • Loading branch information
braincore committed May 12, 2019
1 parent 6c13975 commit fd7b1bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ifft"
version = "0.4.0"
version = "0.4.1"
authors = ["Ken Elkabany <[email protected]>"]
license = "MIT"
description = "IF Filsystem-event Then..."
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ fn watch(
quit_after_run_before: bool,
) -> notify::Result<()> {
let (event_tx, event_rx) = channel();
let mut watcher: RecommendedWatcher = Watcher::new(event_tx, Duration::from_millis(250))?;
if !quit_after_run_before {
let mut watcher: RecommendedWatcher = Watcher::new(event_tx, Duration::from_millis(250))?;
watcher.watch(&watch_path, RecursiveMode::Recursive)?;
}

Expand Down

0 comments on commit fd7b1bc

Please sign in to comment.