server/session.py
changeset 2880 bfc8e1831290
parent 2855 1d9be3dffa94
parent 2874 acdd8d8c2cff
child 2891 60afb9705035
--- a/server/session.py	Sun Aug 16 20:42:33 2009 +0200
+++ b/server/session.py	Mon Aug 17 18:25:57 2009 +0200
@@ -344,7 +344,7 @@
         try:
             csession = self._threaddata.childsession
         except AttributeError:
-            if self.is_super_session:
+            if isinstance(self, (ChildSession, InternalSession)):
                 csession = self
             else:
                 csession = ChildSession(self)