Skip to content

Commit 67bc9cb

Browse files
authored
Merge pull request #501 from zenhack/simplify-handleCancel
handleCancel: minor simplification.
2 parents 52ee1b0 + d9ddd5e commit 67bc9cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rpc/question.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (q *question) handleCancel(ctx context.Context) {
130130

131131
q.p.Reject(rejectErr)
132132
if q.bootstrapPromise != nil {
133-
q.bootstrapPromise.Fulfill(q.p.Answer().Client())
133+
q.bootstrapPromise.Reject(rejectErr)
134134
q.p.ReleaseClients()
135135
}
136136
})

0 commit comments

Comments
 (0)