aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client.rs b/src/client.rs
index 633d585..acb0760 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -55,6 +55,12 @@ impl Client {
}
}
+impl Drop for Client {
+ fn drop(&mut self) {
+ self.call(crate::call::account::Logout);
+ }
+}
+
// The underlying data of a `Client`.
struct ClientRef {
http: reqwest::Client,