fix client api crash

This commit is contained in:
Page Fault
2020-07-14 04:12:25 +00:00
parent 5bfe7be5e4
commit bca5305d04
+3
View File
@@ -74,6 +74,9 @@ func RunClientAPI(ctx context.Context, auth statistic.Authenticator) error {
Port: cfg.API.APIPort,
Zone: addr.Zone,
}).String())
if err != nil {
return common.NewError("client api failed to listen").Base(err)
}
log.Info("client-side api service is listening on", listener.Addr().String())
errChan := make(chan error, 1)
go func() {