Update streams.go

This commit is contained in:
Michele Prà
2024-09-16 16:42:22 +02:00
parent eb8a13d8c2
commit 8128edad43
+2 -1
View File
@@ -61,10 +61,11 @@ func New(name string, source string) *Stream {
return nil
}
stream := NewStream(source)
streamsMu.Lock()
defer streamsMu.Unlock()
stream := NewStream(source)
streams[name] = stream
return stream
}