fix(rtsp): fix RTSP timeout after quitting an app (#3376)
* fix(rtsp): fix RTSP timeout after quitting an app * fix(process): ignore failures when terminating the process group
This commit is contained in:
parent
738a079eb6
commit
54ddf37584
2 changed files with 2 additions and 5 deletions
|
|
@ -87,7 +87,8 @@ namespace proc {
|
||||||
|
|
||||||
// We always call terminate() even if we waited successfully for all processes above.
|
// 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.
|
// This ensures the process group state is consistent with the OS in boost.
|
||||||
group.terminate();
|
std::error_code ec;
|
||||||
|
group.terminate(ec);
|
||||||
group.detach();
|
group.detach();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -588,10 +588,6 @@ namespace rtsp_stream {
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (all && !ios.stopped()) {
|
|
||||||
ios.stop();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue