Philipp Hörist pushed to branch storage at gajim / gajim
Commits:
36f8f012 by Philipp Hörist at 2024-03-21T20:32:13+01:00
fix: Create a new session for every query
- - - - -
1 changed file:
- gajim/common/storage/base.py
Changes:
=====================================
gajim/common/storage/base.py
=====================================
@@ -433,8 +433,8 @@ def with_session(
func: Callable[Concatenate[Any, Session, P], R]
) -> Callable[Concatenate[Any, P], R]:
def wrapper(self: Any, *args: P.args, **kwargs: P.kwargs) -> R:
- with self._session as s, self._session.begin():
- return func(self, s, *args, **kwargs)
+ with self._create_session() as session, session.begin():
+ return func(self, session, *args, **kwargs)
return wrapper
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/36f8f01229c628e41f0a33d7aa466f8963818713
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/36f8f01229c628e41f0a33d7aa466f8963818713
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]