oops, ensure bootstrap uses the questionRef promise
This commit is contained in:
parent
9f13f29bf6
commit
224bc3a3ad
1 changed files with 2 additions and 3 deletions
|
@ -376,8 +376,7 @@ final class RpcState<VatId> {
|
|||
var question = questions.next();
|
||||
question.isAwaitingReturn = true;
|
||||
var questionRef = question.selfRef;
|
||||
var promise = new CompletableFuture<RpcResponse>();
|
||||
var pipeline = new RpcPipeline(questionRef, promise);
|
||||
var pipeline = new RpcPipeline(questionRef, questionRef.response);
|
||||
|
||||
int sizeHint = messageSizeHint(RpcProtocol.Bootstrap.factory);
|
||||
var message = connection.newOutgoingMessage(sizeHint);
|
||||
|
@ -507,7 +506,7 @@ final class RpcState<VatId> {
|
|||
return;
|
||||
}
|
||||
|
||||
final var answerId = bootstrap.getQuestionId();
|
||||
var answerId = bootstrap.getQuestionId();
|
||||
var answer = answers.put(answerId);
|
||||
if (answer.active) {
|
||||
assert false: "bootstrap questionId is already in use: " + answerId;
|
||||
|
|
Loading…
Reference in a new issue