Skip to content

Commit 46e07bd

Browse files
committed
Ensure DHT contact liveness set correctly on create
1 parent 8a9a7c6 commit 46e07bd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

core/src/com/biglybt/core/dht/router/impl/DHTRouterContactImpl.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,15 @@
4949
DHTRouterContactImpl(
5050
byte[] _node_id,
5151
DHTRouterContactAttachment _attachment,
52-
boolean _has_been_alive )
52+
boolean _known_to_be_alive )
5353
{
5454
node_id = _node_id;
5555
attachment = _attachment;
56-
has_been_alive = _has_been_alive;
56+
57+
if ( _known_to_be_alive ){
58+
59+
setAlive();
60+
}
5761

5862
if ( attachment != null ){
5963

0 commit comments

Comments
 (0)