Commit e9ee5729 authored by Him188moe's avatar Him188moe

Updated robot & network structure

parent 7b8cd5d5
......@@ -118,7 +118,7 @@ internal class RobotNetworkHandler(private val robot: Robot) : Closeable {
private fun restartSocket() {
socket.close()
socket = DatagramSocket((15314 + Math.random() * 100).toInt())
socket.connect(this.serverAddress).runCatching { }
socket.connect(this.serverAddress)
val zeroByte: Byte = 0
Thread {
while (true) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment