Check error when tcp port is used

Relates #400
This commit is contained in:
jinleileiking
2019-02-14 17:56:11 +08:00
committed by jinleileiking
parent c40e4a53ef
commit e982d6eda2

View File

@@ -53,7 +53,8 @@ func main() {
})
go func() {
http.ListenAndServe(":"+strconv.Itoa(*port), nil)
err := http.ListenAndServe(":"+strconv.Itoa(*port), nil)
util.Check(err)
}()
offer := webrtc.RTCSessionDescription{}