~nataliabidart/ubuntuone-client/login-email-password-for-everyone

« back to all changes in this revision

Viewing changes to ubuntuone/syncdaemon/event_queue.py

  • Committer: Tarmac
  • Author(s): Alejandro J. Cura
  • Date: 2011-08-19 21:08:38 UTC
  • mfrom: (1102.3.9 watch-finished-deferred)
  • Revision ID: tarmac-20110819210838-p9xl304cyur4szq0
A deferred that is fired when watches are completely removed. (LP: #824819)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
import functools
22
22
import logging
23
23
 
 
24
from twisted.internet import defer
 
25
 
24
26
from ubuntuone.platform import FilesystemMonitor
25
27
 
26
28
# these are our internal events, what is inserted into the whole system
202
204
        if not self.empty_event_queue_callbacks:
203
205
            self._have_empty_eq_cback = False
204
206
 
 
207
    @defer.inlineCallbacks
205
208
    def shutdown(self):
206
209
        """Make the monitor shutdown."""
207
 
        self.monitor.shutdown()
 
210
        yield self.monitor.shutdown()
208
211
        # clean up all registered listeners
209
212
        if len(self.listener_map.items()) > 0:
210
213
            for k, v in self.listener_map.items():