Merge pull request #1355 from michelepra/concurrent_map_fix

data race for streams map
This commit is contained in:
Alex X
2024-09-27 21:11:18 +03:00
committed by GitHub
+3
View File
@@ -62,7 +62,10 @@ func New(name string, source string) *Stream {
}
stream := NewStream(source)
streamsMu.Lock()
streams[name] = stream
streamsMu.Unlock()
return stream
}