Fixed panic on non-metrics

This commit is contained in:
Ice3man543 2020-12-18 17:12:22 +05:30
parent 7aa20ee91a
commit 6c86ae060b

View File

@ -186,5 +186,7 @@ func (p *Progress) Stop() {
gologger.Warningf("Couldn't stop statistics: %s\n", err)
}
}
_ = p.server.Shutdown(context.Background())
if p.server != nil {
_ = p.server.Shutdown(context.Background())
}
}