Skip to content

Commit

Permalink
fix: client streaming cancelation is not sent
Browse files Browse the repository at this point in the history
  • Loading branch information
notmedia committed Aug 18, 2022
1 parent 7917ca7 commit dc517a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default {
async cancel(id: string): Promise<void> {
try {
ipcRenderer.emit(GrpcClientClientStreamingChannel.CANCEL, id);
await ipcRenderer.invoke(GrpcClientChannel.CANCEL_SERVER_STREAMING_REQUEST, id);
await ipcRenderer.invoke(GrpcClientChannel.CANCEL_CLIENT_STREAMING_REQUEST, id);
} catch (error) {
throw new Error(parseErrorFromIPCMain(error));
}
Expand Down

0 comments on commit dc517a9

Please sign in to comment.