1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-12 02:34:28 +00:00
zeripath 1ae5435e41
Prevent (caught) panic on login (#11590) (#11597)
Backport #11590

Unfortunately when the virtual session is released it requires that the
real session does not exist. This worked fine when sessions were only
saved at the end of request/response cycle however, now sessions are
saved proactively this does not hold.

The result is a caught panic in the logs during every log-in.  This
panic has no significant side-effects but should not occur.

This PR marks the virtual session as released when released and updates
it if the same session is released again.

Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-05-24 18:12:25 +01:00
..
2020-04-05 07:20:50 +01:00
2020-04-05 07:20:50 +01:00
2019-06-12 15:41:28 -04:00
2018-11-04 22:20:00 -05:00
2019-06-12 15:41:28 -04:00
2020-04-05 07:20:50 +01:00
2019-11-22 08:03:45 +00:00
2019-03-08 11:42:50 -05:00
2019-08-23 12:40:29 -04:00
2019-08-17 13:10:17 +03:00
2020-04-05 07:20:50 +01:00