Skip to content

Commit

Permalink
unused param
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 committed Aug 29, 2024
1 parent f129ffe commit 98077a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/pipeline/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,14 +393,14 @@ func (c *Controller) SendEOS(ctx context.Context, reason string) {
case livekit.EgressStatus_EGRESS_ACTIVE:
c.Info.UpdateStatus(livekit.EgressStatus_EGRESS_ENDING)
_, _ = c.ipcServiceClient.HandlerUpdate(ctx, (*livekit.EgressInfo)(c.Info))
c.sendEOS(reason)
c.sendEOS()

case livekit.EgressStatus_EGRESS_ENDING:
_, _ = c.ipcServiceClient.HandlerUpdate(ctx, (*livekit.EgressInfo)(c.Info))
c.sendEOS(reason)
c.sendEOS()

case livekit.EgressStatus_EGRESS_LIMIT_REACHED:
c.sendEOS(reason)
c.sendEOS()
}

if c.SourceType == types.SourceTypeWeb {
Expand All @@ -410,7 +410,7 @@ func (c *Controller) SendEOS(ctx context.Context, reason string) {
})
}

func (c *Controller) sendEOS(reason string) {
func (c *Controller) sendEOS() {
c.eosTimer = time.AfterFunc(time.Second*30, func() {
c.OnError(errors.ErrPipelineFrozen)
})
Expand Down

0 comments on commit 98077a9

Please sign in to comment.