diff --git a/src/kits/storage/PathMonitor.cpp b/src/kits/storage/PathMonitor.cpp index e0cbac1696..03c3356f3a 100644 --- a/src/kits/storage/PathMonitor.cpp +++ b/src/kits/storage/PathMonitor.cpp @@ -2043,6 +2043,7 @@ BPathMonitor::StartWatching(const char* path, uint32 flags, sWatchers->Remove(watcher); delete watcher; } + return status; } watcher->Insert(handler);