From 39fd0e46b11ac1bd9ab2ba5a38c75659bf9cbe4c Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 5 Oct 2023 16:53:47 +0100 Subject: [PATCH] screencopy: avoid defective exit() calls --- src/portals/Screencopy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/portals/Screencopy.cpp b/src/portals/Screencopy.cpp index c13ff2f..d78e716 100644 --- a/src/portals/Screencopy.cpp +++ b/src/portals/Screencopy.cpp @@ -967,7 +967,7 @@ void CPipewireConnection::createStream(CScreencopyPortal::SSession* pSession) { if (!PSTREAM->stream) { Debug::log(ERR, "[pipewire] refused to create stream"); - exit(1); + g_pPortalManager->terminate(); } spa_pod_builder* builder[2] = {&dynBuilder[0].b, &dynBuilder[1].b};