Update for this repo

This commit is contained in:
Arlo Breault 2016-01-04 16:50:22 -08:00
parent aa46a58e3e
commit 461324d36e
4 changed files with 12 additions and 10 deletions

View file

@ -57,11 +57,8 @@ func (c *webRTCConn) Read(b []byte) (int, error) {
func (c *webRTCConn) Write(b []byte) (int, error) {
log.Printf("webrtc Write %d %q", len(b), string(b))
err := c.dc.Send(b)
if err != nil {
return 0, err
}
return len(b), err
c.dc.Send(b)
return len(b), nil
}
func (c *webRTCConn) Close() error {