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