File tree Expand file tree Collapse file tree
main/java/org/tron/core/net/peer
test/java/org/tron/core/net/peer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ public void setBlockBothHave(BlockId blockId) {
167167 }
168168
169169 public boolean isIdle () {
170- return advInvRequest . isEmpty () && syncBlockRequested .isEmpty () && syncChainRequested == null ;
170+ return syncBlockRequested .isEmpty () && syncChainRequested == null ;
171171 }
172172
173173 public void sendMessage (Message message ) {
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public void testIsIdle() {
7878 Long time = System .currentTimeMillis ();
7979 peerConnection .getAdvInvRequest ().put (item , time );
8080 f = peerConnection .isIdle ();
81- Assert .assertTrue (! f );
81+ Assert .assertTrue (f );
8282
8383 peerConnection .getAdvInvRequest ().clear ();
8484 f = peerConnection .isIdle ();
You can’t perform that action at this time.
0 commit comments