Skip to content

Commit

Permalink
Fix WebRTC card stuck in loading #1417
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Oct 29, 2024
1 parent 780f378 commit 3f94a75
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/streams/streams.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,20 @@ func Patch(name string, source string) *Stream {
return nil
}

if Validate(source) != nil {
return nil
}

// check an existing stream with this name
if stream, ok := streams[name]; ok {
stream.SetSource(source)
return stream
}

// create new stream with this name
return New(name, source)
stream := NewStream(source)
streams[name] = stream
return stream
}

func GetOrPatch(query url.Values) *Stream {
Expand Down

0 comments on commit 3f94a75

Please sign in to comment.