mirror of
https://github.com/livekit/livekit.git
synced 2026-10-22 13:12:09 +00:00
fix CreateEgress not completing (#2156)
This commit is contained in:
1 parent
62b057b4c1
commit
b290c233ea
1 file changed
+5
-4
@@ -25,6 +25,7 @@ import (
|
||||
"github.com/livekit/livekit-server/pkg/rtc"
|
||||
"github.com/livekit/protocol/egress"
|
||||
"github.com/livekit/protocol/livekit"
|
||||
"github.com/livekit/protocol/logger"
|
||||
"github.com/livekit/protocol/rpc"
|
||||
"github.com/livekit/protocol/utils"
|
||||
)
|
||||
@@ -207,10 +208,10 @@ func (s *egressLauncher) StartEgressWithClusterId(ctx context.Context, clusterId
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// TODO: remove
|
||||
go func() {
|
||||
_, _ = s.io.CreateEgress(ctx, info)
|
||||
}()
|
||||
_, err = s.io.CreateEgress(ctx, info)
|
||||
if err != nil {
|
||||
logger.Errorw("failed to create egress", err)
|
||||
}
|
||||
|
||||
return info, nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user