Skip to content

Commit

Permalink
correctly close tickerCheckStream; fix #26
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Jul 4, 2020
1 parent eab4efe commit d05cad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion streamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit d05cad0

Please sign in to comment.