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