Skip to content

Commit 94b7c33

Browse files
committed
Update backchannel.go
Code refactoring for #1895
1 parent 887f0f4 commit 94b7c33

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/doorbird/backchannel.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +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)
9291
// just block until c.conn closed
9392
b := make([]byte, 1)
94-
_, _ = c.conn.Read(b)
93+
_, err = c.conn.Read(b)
9594
return
9695
}

0 commit comments

Comments
 (0)