Philipp Hörist pushed to branch master at gajim / gajim
Commits:
acbc3c90 by Philipp Hörist at 2025-11-18T22:42:12+01:00
fix: Client: Don’t fail when disconnecting
The resumeable attribute is not available anymore after the client is destroyed
Fixes #12537
- - - - -
1 changed file:
- gajim/common/client.py
Changes:
=====================================
gajim/common/client.py
=====================================
@@ -311,9 +311,12 @@ def _on_password() -> None:
text=text or error))
if self._reconnect:
+ # Save resumeable information because in
+ # _after_disconnect() we destroy the client object
+ stream_is_resumeable = self._client.resumeable
self._after_disconnect()
self._schedule_reconnect()
- if not self._client.resumeable:
+ if not stream_is_resumeable:
self.notify('state-changed', SimpleClientState.DISCONNECTED)
self.notify('state-changed', SimpleClientState.RESUME_IN_PROGRESS)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/acbc3c90aa49cfb034388c4de16cf30dd356f253
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/acbc3c90aa49cfb034388c4de16cf30dd356f253
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]