fix panic when close with not start in sdk

This commit is contained in:
刘河 2019-12-08 23:31:53 +08:00
parent ac38d342fa
commit 999fac8ad7

View File

@ -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 {