mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-12 02:05:50 +00:00
add receipt timeout
This commit is contained in:
parent
c79a830f2e
commit
fabfed552e
@ -237,7 +237,7 @@ public class RNSPeer {
|
||||
link.setPacketCallback(this::linkPacketReceived);
|
||||
Packet pingPacket = new Packet(link, data);
|
||||
PacketReceipt packetReceipt = pingPacket.send();
|
||||
//packetReceipt.setTimeout(3L);
|
||||
packetReceipt.setTimeout(3L);
|
||||
packetReceipt.setTimeoutCallback(this::packetTimedOut);
|
||||
packetReceipt.setDeliveryCallback(this::packetDelivered);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user