Commit 166ae89d authored by Z.J. van de Weg's avatar Z.J. van de Weg

Ensure the session is destroyed

parent 4b23764d
......@@ -28,10 +28,12 @@ module Mattermost
def with_session
raise NoSessionError unless create
result = yield
destroy
result
begin
yield
ensure
destroy
end
end
# Next methods are needed for Doorkeeper
......
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