[clean_session] revert itervalues usage from 0bb18407c053
self.close(session) changes the self._sessions content. We need to create a full
list of value before starting closing them.
--- a/server/repository.py Fri Apr 12 11:39:10 2013 +0200
+++ b/server/repository.py Tue Apr 16 13:44:01 2013 +0200
@@ -985,7 +985,7 @@
self.debug('cleaning session unused since %s',
strftime('%T', localtime(mintime)))
nbclosed = 0
- for session in self._sessions.itervalues():
+ for session in self._sessions.values():
if session.timestamp < mintime:
self.close(session.id)
nbclosed += 1