Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions web/internal/channel_handlers/video_assignment_channel_handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,14 @@ export class VideoAssignmentChannelHandler {
'Video assignment channel: recieved response',
response,
);
this.pendingRequestResolveMap.get(response.requestId)?.(response.status);
const resolve = this.pendingRequestResolveMap.get(response.requestId);
if (resolve){
try {
resolve(response.status);
} finally {
this.pendingRequestResolveMap.delete(response.requestId);
}
}
Comment thread
totoathos marked this conversation as resolved.
}

private onVideoAssignmentResources(resources: VideoAssignmentResource[]) {
Expand Down Expand Up @@ -227,10 +234,12 @@ export class VideoAssignmentChannelHandler {
}
}
// tslint:enable:no-unnecessary-type-assertion
this.channelLogger?.log(
LogLevel.ERRORS,
'Video assignment channel: server sent a canvas that was not created by the client',
);
else {
this.channelLogger?.log(
LogLevel.ERRORS,
'Video assignment channel: server sent a canvas that was not created by the client',
);
}
},
);
}
Expand Down