mirror of https://github.com/ehang-io/nps
fix panic when close with not start in sdk
parent
ac38d342fa
commit
999fac8ad7
|
@ -31,7 +31,9 @@ func GetClientStatus() int {
|
|||
|
||||
//export CloseClient
|
||||
func CloseClient() {
|
||||
cl.Close()
|
||||
if cl != nil {
|
||||
cl.Close()
|
||||
}
|
||||
}
|
||||
|
||||
//export Version
|
||||
|
|
Loading…
Reference in New Issue