diff --git a/src/helpers/AsyncDialogBox.cpp b/src/helpers/AsyncDialogBox.cpp index 3010d10e..73bae8f6 100644 --- a/src/helpers/AsyncDialogBox.cpp +++ b/src/helpers/AsyncDialogBox.cpp @@ -99,14 +99,14 @@ void CAsyncDialogBox::open(std::function onResolution) { m_selfReference = m_selfWeakReference.lock(); - m_dialogPid = proc.pid(); - if (!proc.runAsync()) { Debug::log(ERR, "CAsyncDialogBox::open: failed to run async"); wl_event_source_remove(m_readEventSource); return; } + m_dialogPid = proc.pid(); + // close the write fd, only the dialog owns it now close(outPipe[1]); }