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

« back to all changes in this revision

Viewing changes to ubuntuone/syncdaemon/main.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:
199
199
        # hook the event queue to the root dir
200
200
        self.event_q.push('SYS_INIT_DONE')
201
201
 
 
202
    @defer.inlineCallbacks
202
203
    def shutdown(self, with_restart=False):
203
204
        """Shutdown the daemon; optionally restart it."""
204
205
        self.event_q.push('SYS_USER_DISCONNECT')
215
216
        self.hash_q.shutdown()
216
217
        self.external.shutdown(with_restart)
217
218
 
218
 
        self.event_q.shutdown()
 
219
        yield self.event_q.shutdown()
219
220
        self.db.shutdown()
220
221
        self.mark.stop()
221
222