Skip to content

Commit 6a67fc3

Browse files
authored
Merge pull request #1895 from oeiber/master
Fix connection issues in conjunction with doorbird backchannel
2 parents ec08dfe + 94b7c33 commit 6a67fc3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/doorbird/backchannel.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ func (c *Client) AddTrack(media *core.Media, codec *core.Codec, track *core.Rece
8888
}
8989

9090
func (c *Client) Start() (err error) {
91-
_, err = c.conn.Read(nil)
91+
// just block until c.conn closed
92+
b := make([]byte, 1)
93+
_, err = c.conn.Read(b)
9294
return
9395
}

0 commit comments

Comments
 (0)