fix "questionId is already in use" error
This commit is contained in:
parent
eab88298e2
commit
2731586bb9
1 changed files with 6 additions and 4 deletions
|
@ -758,10 +758,12 @@ final class RpcState<VatId> {
|
|||
if (ctx != null) {
|
||||
ctx.requestCancel();
|
||||
}
|
||||
else {
|
||||
var questionId = finish.getQuestionId();
|
||||
answers.erase(questionId);
|
||||
}
|
||||
|
||||
// Remove question id
|
||||
// this is a different then c++ implementation, but it is required as java's promises doesn't support
|
||||
// all features of kj's promises
|
||||
var questionId = finish.getQuestionId();
|
||||
answers.erase(questionId);
|
||||
|
||||
if (exportsToRelease != null) {
|
||||
this.releaseExports(exportsToRelease);
|
||||
|
|
Loading…
Reference in a new issue