Fix starting DHT discovery
This commit is contained in:
parent
364866d905
commit
25e4f24ae9
1 changed files with 10 additions and 8 deletions
|
@ -144,6 +144,7 @@ public class DHTNodeFinderThread implements Runnable{
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleIncomingMessages(){
|
private void handleIncomingMessages(){
|
||||||
|
new Thread(() -> {
|
||||||
while(DHT.getSocket().isBound()){
|
while(DHT.getSocket().isBound()){
|
||||||
while(this.incoming.peek()!=null){
|
while(this.incoming.peek()!=null){
|
||||||
UDP.Packet receiverPacket = this.incoming.poll();
|
UDP.Packet receiverPacket = this.incoming.poll();
|
||||||
|
@ -155,6 +156,7 @@ public class DHTNodeFinderThread implements Runnable{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},"DHT Incoming").start();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue