From d13ed6d79af61db6333ad5cc3200d96b6410d064 Mon Sep 17 00:00:00 2001
From: gongshangguo <gongshangguo@admin.com>
Date: 星期三, 02 三月 2022 10:17:46 +0800
Subject: [PATCH] close
---
client/client.go | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/client/client.go b/client/client.go
index 1390cf4..c289f02 100644
--- a/client/client.go
+++ b/client/client.go
@@ -438,6 +438,11 @@
return c.deviceId
}
+// 鑾峰彇杩炴帴鐘舵��
+func (c *Client) GetState() State {
+ return c.state
+}
+
// 鍒ゆ柇杩炴帴鏄惁鍏抽棴
func (c *Client) IsClosed() bool {
return c.state == StateDisconnected
--
Gitblit v1.8.0