Give onReceive lambda an explicit name for it to avoid conflicts

This commit is contained in:
ProtoByter 2022-12-07 08:18:34 +00:00
parent 2234257ee2
commit b452626fe9

View File

@ -21,9 +21,9 @@ fun Application.puncher() {
Logging.info("HolePunch listening on ${serverSocket.localAddress}")
select<Unit> {
serverSocket.incoming.onReceive {
val address = it.address
val packet = it.packet
serverSocket.incoming.onReceive { datagram ->
val address = datagram.address
val packet = datagram.packet
val packetBytes = packet.readByteBuffer()
val uuid: UUID?