Fix bug causing Sunshine thinking there is still an app running after shutting down app from within the Stream

This commit is contained in:
loki 2019-12-30 19:37:12 +01:00
commit 330b0ef8ef
5 changed files with 51 additions and 46 deletions

View file

@ -549,7 +549,7 @@ void controlThread(video::idr_event_t idr_events) {
stop(session);
}
if(session.has_process && !proc::proc.running()) {
if(session.has_process && proc::proc.running() == -1) {
std::cout << "Process terminated"sv << std::endl;
std::uint16_t reason = 0x0100;