Fix exiting loop

This commit is contained in:
Ingo Oppermann
2022-06-24 19:46:28 +02:00
parent 899a863131
commit 25efb3152b

View File

@@ -326,7 +326,7 @@ func (s *server) srtlogListener(ctx context.Context) {
for {
select {
case <-ctx.Done():
break
return
case l := <-s.srtlogger.Listen():
s.srtlogLock.Lock()
if buf := s.srtlog[l.Topic]; buf == nil {