Skip to content

Commit

Permalink
Fix calls to createOutgoingResponseWithException
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardnormier committed Oct 11, 2024
1 parent 7cdadd6 commit e62ffd4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions js/src/Ice/ConnectionI.js
Original file line number Diff line number Diff line change
Expand Up @@ -1427,10 +1427,7 @@ export class ConnectionI {
} else {
// Received request on a connection without an object adapter.
this.sendResponse(
request.current.createOutgoingResponseWithException(
new ObjectNotExistException(),
this._communicator,
),
request.current.createOutgoingResponseWithException(new ObjectNotExistException()),
!this._endpoint.datagram() && requestId != 0,
);
}
Expand Down Expand Up @@ -1460,9 +1457,7 @@ export class ConnectionI {
try {
response = await dispatcher.dispatch(request);
} catch (ex) {
const communicator = request.current.adapter.getCommunicator();
Debug.assert(communicator !== null);
response = request.current.createOutgoingResponseWithException(ex, communicator);
response = request.current.createOutgoingResponseWithException(ex);
}
connection.sendResponse(response, !connection._endpoint.datagram() && requestId != 0);
} catch (ex) {
Expand Down

0 comments on commit e62ffd4

Please sign in to comment.