def stop(self):
     from p2p import propagate
     propagate.shutdown()
     from contacts import contactsdb
     contactsdb.shutdown()
     from contacts import identitycache
     identitycache.shutdown()
     return True
 def stop(self):
     from main.config import conf
     from p2p import propagate
     from contacts import contactsdb
     from contacts import identitycache
     conf().removeConfigNotifier('services/identity-propagate/known-servers')
     propagate.shutdown()
     contactsdb.shutdown()
     identitycache.shutdown()
     return True
예제 #3
0
 def stop(self):
     from main.config import conf
     from main import events
     from p2p import propagate
     from contacts import contactsdb
     from contacts import identitycache
     events.remove_subscriber(self._on_my_identity_rotated,
                              'my-identity-rotated')
     events.remove_subscriber(self._on_local_identity_modified,
                              'local-identity-modified')
     conf().removeConfigNotifier(
         'services/identity-propagate/known-servers')
     propagate.shutdown()
     contactsdb.shutdown()
     identitycache.shutdown()
     return True