From d05cad023235095d31ea855f8cfdb90bb759a15d Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sat, 4 Jul 2020 17:52:20 +0200 Subject: [PATCH] correctly close tickerCheckStream; fix #26 --- streamer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streamer.go b/streamer.go index b63e720e563..2dd95af0674 100644 --- a/streamer.go +++ b/streamer.go @@ -406,7 +406,7 @@ func (s *streamer) runUdp(conn *gortsplib.ConnClient) bool { defer tickerSendKeepalive.Stop() tickerCheckStream := time.NewTicker(_CHECK_STREAM_INTERVAL) - defer tickerSendKeepalive.Stop() + defer tickerCheckStream.Stop() s.p.events <- programEventStreamerReady{s}