Skip to content

Commit f6d2232

Browse files
committed
fix: responseOnserver return bugs .
1 parent f6471b1 commit f6d2232

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/main/java/org/tron/core/services/RpcApiService.java‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,9 @@ public void getTransactionsFromThis(Account request,
304304
TransactionList reply = walletSolidity.getTransactionsFromThis(thisAddress);
305305
responseObserver.onNext(reply);
306306
} else {
307-
responseObserver.onCompleted();
307+
responseObserver.onNext(null);
308308
}
309+
responseObserver.onCompleted();
309310
}
310311

311312
@Override
@@ -316,8 +317,9 @@ public void getTransactionsToThis(Account request,
316317
TransactionList reply = walletSolidity.getTransactionsToThis(toAddress);
317318
responseObserver.onNext(reply);
318319
} else {
319-
responseObserver.onCompleted();
320+
responseObserver.onNext(null);
320321
}
322+
responseObserver.onCompleted();
321323
}
322324
}
323325

0 commit comments

Comments
 (0)