Skip to content

Commit

Permalink
Update stream.go
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelGoerentz authored Jan 21, 2025
1 parent 53c771e commit d20e67f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func (s *Stream) Broadcast() {

s.mu.Lock()
for _, client := range s.Clients {
client.buffer.Write(buffer[:n])
client.buffer.Write(buffer[0:n])
select {
case client.flushChannel <- struct{}{}:
<-client.doneChannel
Expand Down

0 comments on commit d20e67f

Please sign in to comment.