mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 14:40:26 -05:00
#14414 Block gRPC idle processing while crash handling is in progress
This commit is contained in:
1 parent
272f7fa56b
commit
068d2b98bc
4 files changed
+34
No files matched your search
@@ -17,6 +17,8 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
#include "RiaGrpcConsoleApplication.h"
|
||||
|
||||
#include "RiaMainTools.h"
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -30,6 +32,11 @@ QProcessEnvironment RiaGrpcConsoleApplication::pythonProcessEnvironment() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiaGrpcConsoleApplication::doIdleProcessing()
|
||||
{
|
||||
// The crash handler pumps the event loop while flushing telemetry, so this timer slot can fire
|
||||
// mid-crash. Processing requests or closing the project would then destroy objects the crashed
|
||||
// code still uses, causing a nested crash.
|
||||
if ( RiaMainTools::isCrashHandlingInProgress() ) return;
|
||||
|
||||
int processCount = processRequests();
|
||||
if ( processCount == -1 )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user