Fix itctl panic when itd is not running (Fixes #14)
This commit is contained in:
parent
f7d4fc1b58
commit
c5ea3df255
@ -184,7 +184,10 @@ func main() {
|
||||
return nil
|
||||
},
|
||||
After: func(*cli.Context) error {
|
||||
return client.Close()
|
||||
if client != nil {
|
||||
client.Close()
|
||||
}
|
||||
return nil
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user