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();
|
var question = questions.next();
|
||||||
question.isAwaitingReturn = true;
|
question.isAwaitingReturn = true;
|
||||||
var questionRef = question.selfRef;
|
var questionRef = question.selfRef;
|
||||||
var promise = new CompletableFuture<RpcResponse>();
|
var pipeline = new RpcPipeline(questionRef, questionRef.response);
|
||||||
var pipeline = new RpcPipeline(questionRef, promise);
|
|
||||||
|
|
||||||
int sizeHint = messageSizeHint(RpcProtocol.Bootstrap.factory);
|
int sizeHint = messageSizeHint(RpcProtocol.Bootstrap.factory);
|
||||||
var message = connection.newOutgoingMessage(sizeHint);
|
var message = connection.newOutgoingMessage(sizeHint);
|
||||||
|
@ -507,7 +506,7 @@ final class RpcState<VatId> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
final var answerId = bootstrap.getQuestionId();
|
var answerId = bootstrap.getQuestionId();
|
||||||
var answer = answers.put(answerId);
|
var answer = answers.put(answerId);
|
||||||
if (answer.active) {
|
if (answer.active) {
|
||||||
assert false: "bootstrap questionId is already in use: " + answerId;
|
assert false: "bootstrap questionId is already in use: " + answerId;
|
||||||
|
|
Loading…
Reference in a new issue