Skip to content

Commit

Permalink
streamer: -
Browse files Browse the repository at this point in the history
  • Loading branch information
Wessie committed May 29, 2024
1 parent 75dbdb9 commit 3fa8b59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions streamer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func Execute(ctx context.Context, cfg config.Config) error {
// wait for our context to be canceled or Serve to error out
select {
case <-util.Signal(syscall.SIGUSR2):
zerolog.Ctx(ctx).Info().Msg("SIGUSR2 received")
if err := streamer.handleRestart(ctx); err != nil {
zerolog.Ctx(ctx).Error().Err(err).Msg("failed to handle restart")
}
Expand Down
4 changes: 2 additions & 2 deletions streamer/streamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ func (s *Streamer) userChange(ctx context.Context, user *radio.User, timer *util
zerolog.Ctx(ctx).Info().
Dur("timeout", time.Duration(timeout)).
Msg("starting after timeout")
timer.Start(time.Second)
//timer.Start(time.Duration(timeout))

timer.Start(time.Duration(timeout))
return
}
}
Expand Down

0 comments on commit 3fa8b59

Please sign in to comment.