summaryrefslogtreecommitdiffstats
path: root/src/core/path.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/path.c')
-rw-r--r--src/core/path.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/path.c b/src/core/path.c
index 562cd352a3..ac1289a658 100644
--- a/src/core/path.c
+++ b/src/core/path.c
@@ -480,11 +480,9 @@ static void path_enter_running(Path *p) {
p->inotify_triggered = false;
- r = path_watch(p);
- if (r < 0)
- goto fail;
-
path_set_state(p, PATH_RUNNING);
+ path_unwatch(p);
+
return;
fail: