Skip to content

Commit

Permalink
fix(rtsp): fix RTSP timeout after quitting an app (LizardByte#3376)
Browse files Browse the repository at this point in the history
* fix(rtsp): fix RTSP timeout after quitting an app

* fix(process): ignore failures when terminating the process group
  • Loading branch information
cgutman authored and qiin2333 committed Nov 7, 2024
1 parent 54b13ff commit 953b7c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ namespace proc {

// We always call terminate() even if we waited successfully for all processes above.
// This ensures the process group state is consistent with the OS in boost.
group.terminate();
std::error_code ec;
group.terminate(ec);
group.detach();
}

Expand Down
4 changes: 0 additions & 4 deletions src/rtsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -588,10 +588,6 @@ namespace rtsp_stream {
i++;
}
}

if (all && !ios.stopped()) {
ios.stop();
}
}

/**
Expand Down

0 comments on commit 953b7c4

Please sign in to comment.