diff options
author | Kali Kaneko <kali@leap.se> | 2013-08-30 19:43:54 +0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2013-08-30 19:43:54 +0200 |
commit | 618f13ab5f8ce41b2065289ae341cce7e0674854 (patch) | |
tree | 98308863b05dd583130c05d0b2ffb6a1cfeeee3c /src/leap | |
parent | 65ac6c78ad4be4cb8c7cb9b20f69b35bfcdb83c7 (diff) | |
parent | 78f6ca775dc42eba69f2dc1e134ca360c0813aff (diff) |
Merge remote-tracking branch 'chiiph/bug/keep_watcher_in_memory' into develop
Diffstat (limited to 'src/leap')
-rw-r--r-- | src/leap/mx/mail_receiver.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/leap/mx/mail_receiver.py b/src/leap/mx/mail_receiver.py index cabb5cb..24ba2fe 100644 --- a/src/leap/mx/mail_receiver.py +++ b/src/leap/mx/mail_receiver.py @@ -72,16 +72,16 @@ class MailReceiver(Service): Starts the MailReceiver service """ Service.startService(self) - wm = inotify.INotify() - wm.startReading() + self.wm = inotify.INotify() + self.wm.startReading() mask = inotify.IN_CREATE for directory, recursive in self._directories: log.msg("Watching %s --- Recursive: %s" % (directory, recursive)) - wm.watch(filepath.FilePath(directory), mask, - callbacks=[self._process_incoming_email], - recursive=recursive) + self.wm.watch(filepath.FilePath(directory), mask, + callbacks=[self._process_incoming_email], + recursive=recursive) def _gather_uuid_pubkey(self, results): if len(results) < 2: |