detect when the connection with the server is closed when publishing with udp (#6)

This commit is contained in:
aler9
2020-10-16 23:13:24 +02:00
parent b647e5ee31
commit c792387d79
5 changed files with 64 additions and 50 deletions

View File

@@ -62,4 +62,8 @@ func main() {
break
}
}
// wait until the connection is closed
err = conn.LoopUDP()
fmt.Println("connection is closed (%s)", err)
}