screencopy: avoid execution after terminate()

This commit is contained in:
vaxerski 2023-10-05 16:54:28 +01:00
parent 39fd0e46b1
commit 7df2d3e9e5

View file

@ -968,6 +968,7 @@ void CPipewireConnection::createStream(CScreencopyPortal::SSession* pSession) {
if (!PSTREAM->stream) { if (!PSTREAM->stream) {
Debug::log(ERR, "[pipewire] refused to create stream"); Debug::log(ERR, "[pipewire] refused to create stream");
g_pPortalManager->terminate(); g_pPortalManager->terminate();
return;
} }
spa_pod_builder* builder[2] = {&dynBuilder[0].b, &dynBuilder[1].b}; spa_pod_builder* builder[2] = {&dynBuilder[0].b, &dynBuilder[1].b};