Skip to content

Commit

Permalink
Properly fail a single-result operation over WS when the WS connectio…
Browse files Browse the repository at this point in the history
…n fails
  • Loading branch information
jmartisk committed Nov 14, 2023
1 parent 7bdfb31 commit 739dbb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ private Uni<Response> executeSingleResultOperationOverWebsocket(JsonObject json)
webSocketHandler().subscribe().with(handler -> {
handlerRef.set(handler);
operationId.set(handler.executeUni(json, rawEmitter));
});
}, rawEmitter::fail);
});
return rawUni
.onCancellation().invoke(() -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ private Uni<Object> executeSingleResultOperationOverWebsocket(MethodInvocation m
webSocketHandler().subscribe().with((handler) -> {
handlerRef.set(handler);
operationId.set(handler.executeUni(request, rawEmitter));
});
}, rawEmitter::fail);
});
return rawUni
.onCancellation().invoke(() -> {
Expand Down

0 comments on commit 739dbb9

Please sign in to comment.