mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-05 15:00:44 +00:00
fix panic when close with not start in sdk
This commit is contained in:
parent
ac38d342fa
commit
999fac8ad7
@ -31,7 +31,9 @@ func GetClientStatus() int {
|
|||||||
|
|
||||||
//export CloseClient
|
//export CloseClient
|
||||||
func CloseClient() {
|
func CloseClient() {
|
||||||
cl.Close()
|
if cl != nil {
|
||||||
|
cl.Close()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//export Version
|
//export Version
|
||||||
|
Loading…
x
Reference in New Issue
Block a user