Skip to content

Commit

Permalink
Update rpc.rs
Browse files Browse the repository at this point in the history
Add a todo
  • Loading branch information
mariocynicys authored Oct 9, 2024
1 parent 604740c commit 28887f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm2src/mm2_main/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ pub extern "C" fn spawn_rpc(ctx_h: u32) {
let (tx, rx) = oneshot::channel();
// We execute the request in a separate task to avoid it being left uncompleted if the client disconnects.
// So what's inside the spawn here will complete till completion (or panic).
// TODO: Figure out whether we could configure hyper to follow such a behavior.
common::executor::spawn(async move {
if is_event_stream_enabled && req.uri().path() == SSE_ENDPOINT {
tx.send(handle_sse(req, ctx_h).await).ok();
Expand Down

0 comments on commit 28887f0

Please sign in to comment.