unexport ConnClientUdpListener.Close

This commit is contained in:
aler9
2020-08-28 22:08:17 +02:00
parent 958f627eca
commit 951626bdc9
4 changed files with 13 additions and 17 deletions

View File

@@ -92,11 +92,7 @@ func main() {
}
err = conn.LoopUdp(u)
fmt.Println("connection is closed (%s)", err)
for _, lp := range listeners {
lp.rtpl.Close()
lp.rtcpl.Close()
}
conn.Close()
wg.Wait()
fmt.Println("connection is closed (%s)", err)
}