From c53cf4c1b31fd070fa8387bbb87478dddc9416d4 Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Wed, 26 Aug 2020 19:05:16 +0200 Subject: [PATCH] prevent channels from failing when manually killed --- ytapi/ytapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytapi/ytapi.go b/ytapi/ytapi.go index 575e82e..32b99f9 100644 --- a/ytapi/ytapi.go +++ b/ytapi/ytapi.go @@ -207,7 +207,7 @@ func getVideos(config *sdk.APIConfig, channelID string, videoIDs []string, stopC } select { case <-stopChan: - return videos, errors.Err("canceled by stopper") + return videos, errors.Err("interrupted by user") default: }