Skip to content

Commit

Permalink
Avoid double start.
Browse files Browse the repository at this point in the history
  • Loading branch information
egonelbre committed Feb 2, 2016
1 parent be293c2 commit ddf2fc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ddf2fc5

Please sign in to comment.