Give onReceive
lambda an explicit name for it
to avoid conflicts
This commit is contained in:
parent
2234257ee2
commit
b452626fe9
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue
Block a user