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