prevent channels from failing when manually killed

This commit is contained in:
Niko Storni 2020-08-26 19:05:16 +02:00
parent ad5a30da9e
commit c53cf4c1b3

View file

@ -207,7 +207,7 @@ func getVideos(config *sdk.APIConfig, channelID string, videoIDs []string, stopC
} }
select { select {
case <-stopChan: case <-stopChan:
return videos, errors.Err("canceled by stopper") return videos, errors.Err("interrupted by user")
default: default:
} }