Skip to content
Snippets Groups Projects
Commit a3155ff7 authored by Michael Eischer's avatar Michael Eischer
Browse files

network: Only create message delay timer if FAKE_WAN_DELAYS are active

Otherwise using multiple replica threads will result in an Exception.
parent 416ffa4c
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,9 @@ public class REFITNetworkEndpointWorker extends REFITSchedulerTask {
if (address.nodeID != nodeID) {
throw new IllegalArgumentException("Got connection for wrong node!");
}
if (REFITConfig.FAKE_WAN_DELAYS) {
timer = newTimer(this::timeout);
}
this.address = address;
try {
connection.init(socketChannel);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment