Export CloseSignalConnection (#936)
* Export CloseSignalConnection There are a few places where that close pattern is repeated. Export it and use that function in other places directly. * fix test
This commit is contained in:
+1
-3
@@ -333,9 +333,7 @@ func (r *Room) Join(participant types.LocalParticipant, opts *ParticipantOptions
|
||||
|
||||
func (r *Room) ResumeParticipant(p types.LocalParticipant, responseSink routing.MessageSink) error {
|
||||
// close previous sink, and link to new one
|
||||
if prevSink := p.GetResponseSink(); prevSink != nil {
|
||||
prevSink.Close()
|
||||
}
|
||||
p.CloseSignalConnection()
|
||||
p.SetResponseSink(responseSink)
|
||||
|
||||
updates := ToProtoParticipants(r.GetParticipants())
|
||||
|
||||
Reference in New Issue
Block a user