From ddf2fc580d0d0fae1639d6b8e99b84cce4c6ff0e Mon Sep 17 00:00:00 2001 From: Egon Elbre Date: Tue, 2 Feb 2016 13:37:56 +0200 Subject: [PATCH] Avoid double start. --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index d282698..55d88c2 100644 --- a/main.go +++ b/main.go @@ -122,14 +122,14 @@ func main() { } procs := ParseArgs(args) - pipe := Run(procs) - changes := watch.Changes( *dir, *interval, watch.IgnoreExtensions(strings.Split(*ignoreext, ";")...), watch.IgnoreNameSuffixed(strings.Split(*ignoresuffix, "")...), watch.IgnoreNamePrefixed(strings.Split(*ignoreprefix, "")...), ) + + var pipe *Pipeline for range changes { if pipe != nil { pipe.Kill()