Skip to content

Commit

Permalink
fix panic when close with not start in sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlh committed Dec 8, 2019
1 parent ac38d34 commit 999fac8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/npc/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ func GetClientStatus() int {

//export CloseClient
func CloseClient() {
cl.Close()
if cl != nil {
cl.Close()
}
}

//export Version
Expand Down

0 comments on commit 999fac8

Please sign in to comment.