Add canary path on empty FSEvents subscription set

This commit is contained in:
Teddy Reed 2015-12-08 19:00:02 -08:00
parent fe234f8f96
commit 9f79d74c60

View File

@ -57,7 +57,7 @@ void FSEventsSubscriptionContext::requireAction(const std::string& action) {
void FSEventsEventPublisher::restart() {
if (paths_.empty()) {
// There are no paths to watch.
return;
paths_.insert("/dev/null/");
}
if (run_loop_ == nullptr) {
@ -176,11 +176,6 @@ void FSEventsEventPublisher::configure() {
paths_.insert(sc->discovered_);
}
// There were no paths in the subscriptions?
if (paths_.empty()) {
return;
}
restart();
}