From ee68d3629c327c8fe24d649c70fccf0997b9c1c0 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sat, 24 Sep 2011 10:34:57 +0100
Subject: [PATCH] add a stop() method to the fsevents watcher

---
 client/djrandom_client/osx_watcher.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/client/djrandom_client/osx_watcher.py b/client/djrandom_client/osx_watcher.py
index 580f05a..e13ac86 100644
--- a/client/djrandom_client/osx_watcher.py
+++ b/client/djrandom_client/osx_watcher.py
@@ -17,3 +17,7 @@ class Watcher(object):
     def callback(self, subpath, mask):
         log.debug('event in %s: %x' % (subpath, mask))
         filescan.directory_scan(subpath, self.queue)
+
+    def stop(self):
+        self.observer.stop()
+
-- 
GitLab