Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2022-10-05 22:27:13 +0300
committerPhilipp Hörist <philipp@hoerist.com>2022-10-05 23:59:05 +0300
commit39628b6de0c62758ff23d4c9a1d56ecfc2901631 (patch)
tree6044d254122dc974dfbbaac1926c11e85e9d7aa3
parent81365d4e8da0287213c7019716c7525da625e296 (diff)
new: Client: Add is_destroyed() method
-rw-r--r--gajim/common/client.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gajim/common/client.py b/gajim/common/client.py
index 339fe52f8..dac5e0505 100644
--- a/gajim/common/client.py
+++ b/gajim/common/client.py
@@ -150,6 +150,9 @@ class Client(Observable):
return address.to_string().split(':')[0]
return None
+ def is_destroyed(self) -> bool:
+ return self._destroyed
+
def set_remove_account(self, value: bool) -> None:
# Used by the RemoveAccount Assistant to make the Client
# not react to any stream errors that happen while the