Fix itctl panic when itd is not running (Fixes #14)

This commit is contained in:
Elara 2022-04-02 15:20:31 -07:00
parent 365414f951
commit c8c617c10a

View File

@ -184,7 +184,10 @@ func main() {
return nil
},
After: func(*cli.Context) error {
return client.Close()
if client != nil {
client.Close()
}
return nil
},
}