shuting -> shutting stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 20 May 2009 14:27:35 +0200
branchstable
changeset 1883 011e13d74cfc
parent 1882 ce662160bb46
child 1884 893119ce3fef
shuting -> shutting
server/repository.py
--- a/server/repository.py	Wed May 20 14:19:53 2009 +0200
+++ b/server/repository.py	Wed May 20 14:27:35 2009 +0200
@@ -217,7 +217,7 @@
         self._get_pool().close(True)
         for i in xrange(config['connections-pool-size']):
             self._available_pools.put_nowait(ConnectionsPool(self.sources))
-        self._shuting_down = False
+        self._shutting_down = False
 
     # internals ###############################################################
 
@@ -350,7 +350,7 @@
         """called on server stop event to properly close opened sessions and
         connections
         """
-        self._shuting_down = True
+        self._shutting_down = True
         if isinstance(self._looping_tasks, tuple): # if tasks have been started
             for looptask in self._looping_tasks:
                 self.info('canceling task %s...', looptask.name)
@@ -722,8 +722,8 @@
 
     def _get_session(self, sessionid, setpool=False):
         """return the user associated to the given session identifier"""
-        if self._shuting_down:
-            raise Exception('Repository is shuting down')
+        if self._shutting_down:
+            raise Exception('Repository is shutting down')
         try:
             session = self._sessions[sessionid]
         except KeyError: