Commit 8ee8a127 authored by Andreas Zeidler's avatar Andreas Zeidler

update for r104360/104361: event subscribers might still need the zodb, so...

update for r104360/104361: event subscribers might still need the zodb, so `clear` must not be called before `notify` as otherwise `self._held=None` might close the connection (refs LP #414757)
parent ea0174f0
......@@ -211,8 +211,10 @@ class BaseRequest:
self._held=None
def close(self):
self.clear()
notify(EndRequestEvent(None, self))
# subscribers might need the zodb, so `clear` must come afterwards
# (since `self._held=None` might close the connection, see above)
self.clear()
def processInputs(self):
"""Do any input processing that could raise errors
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment