remove webRTCConn SendLoop and simplify Write without additional channel, as net.Conn is already safe

This commit is contained in:
Serene Han 2016-02-23 17:34:51 -08:00
parent 3a7e0ea620
commit d4efe774d1
3 changed files with 24 additions and 43 deletions

View file

@ -70,7 +70,6 @@ func dialWebRTC() (*webRTCConn, error) {
connection := NewWebRTCConnection(config, broker)
go connection.ConnectLoop()
go connection.SendLoop()
return connection, nil
}