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 15, 2023
1 parent 598a42f commit cf10ab8
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 @@ -438,7 +438,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 @@ -186,7 +186,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 cf10ab8

Please sign in to comment.