Skip to content

Commit

Permalink
fix(watch): notify on all state besides idle
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkness4 committed Oct 31, 2023
1 parent 47dcdd0 commit ee46e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/watch/watch_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func handleConfig(ctx context.Context, config *Config) {
log.Info().Msg("abort watching channel")
if state.DefaultState.GetChannelState(
channelID,
) == state.DownloadStateDownloading {
) != state.DownloadStateIdle {
if err := notifier.Notify(
context.Background(),
fmt.Sprintf("stream download of the channel %s (%v) was canceled", channelID, utils.JSONMustEncode(params.Labels)),
Expand Down

0 comments on commit ee46e2f

Please sign in to comment.