cubicweb/server/repository.py
changeset 12016 88ed82a25f8a
parent 12012 f7ff5217a02f
child 12021 cc8135ecfbb8
equal deleted inserted replaced
12015:fe057cb231b6 12016:88ed82a25f8a
   458         if not (self.config.creating or self.config.repairing
   458         if not (self.config.creating or self.config.repairing
   459                 or self.config.quick_start):
   459                 or self.config.quick_start):
   460             # then, the system source is still available
   460             # then, the system source is still available
   461             self.hm.call_hooks('before_server_shutdown', repo=self)
   461             self.hm.call_hooks('before_server_shutdown', repo=self)
   462         self.shutting_down = True
   462         self.shutting_down = True
       
   463         self.info('shutting down repository')
   463         self.system_source.shutdown()
   464         self.system_source.shutdown()
   464         if not (self.config.creating or self.config.repairing
   465         if not (self.config.creating or self.config.repairing
   465                 or self.config.quick_start):
   466                 or self.config.quick_start):
   466             self.hm.call_hooks('server_shutdown', repo=self)
   467             self.hm.call_hooks('server_shutdown', repo=self)
   467         for thread in self._running_threads:
   468         for thread in self._running_threads: