fix panic for StartEgress
This commit is contained in:
@@ -83,13 +83,15 @@ func (s *EgressService) StartEgress(ctx context.Context, roomName livekit.RoomNa
|
|||||||
|
|
||||||
info, err := egress.SendRequest(ctx, s.bus, req)
|
info, err := egress.SendRequest(ctx, s.bus, req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
s.telemetry.EgressStarted(ctx, info)
|
s.telemetry.EgressStarted(ctx, info)
|
||||||
go func() {
|
go func() {
|
||||||
if err := s.store.StoreEgress(ctx, info); err != nil {
|
if err := s.store.StoreEgress(ctx, info); err != nil {
|
||||||
logger.Errorw("could not write egress info", err)
|
logger.Errorw("could not write egress info", err)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
}
|
|
||||||
|
|
||||||
return info, nil
|
return info, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user