mirror of
https://github.com/ehang-io/nps.git
synced 2026-10-31 16:52:12 +08:00
fix panic when close with not start in sdk
This commit is contained in:
1 parent
ac38d342fa
commit
999fac8ad7
1 file changed
+3
-1
+3
-1
@@ -31,7 +31,9 @@ func GetClientStatus() int {
|
||||
|
||||
//export CloseClient
|
||||
func CloseClient() {
|
||||
cl.Close()
|
||||
if cl != nil {
|
||||
cl.Close()
|
||||
}
|
||||
}
|
||||
|
||||
//export Version
|
||||
|
||||
Reference in new issue
Block a user