diff -r 0cb160fd3cdf -r bfc8e1831290 server/session.py --- 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)