pyro: remove db Session when callback finishes to avoid leaving

hanging connections
This commit is contained in:
Daniel Dourvaris 2016-08-15 17:52:51 +03:00
parent e6833d2fd8
commit 8c01d385c8

View file

@ -265,6 +265,7 @@ class Hooks(object):
}
finally:
pylons.url._pop_object()
meta.Session.remove()
return {
'status': result.status,