From f3eabc28e2415df40b62262d97d00ec8b2032c7c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 28 Aug 2020 17:21:52 +0200 Subject: [PATCH] Don't handle crashes, if there's no connection. --- client/TracyProfiler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index b2f32b69..e251ce11 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -538,6 +538,8 @@ static char s_crashText[1024]; LONG WINAPI CrashFilter( PEXCEPTION_POINTERS pExp ) { + if( !GetProfiler().IsConnected() ) return EXCEPTION_CONTINUE_SEARCH; + const unsigned ec = pExp->ExceptionRecord->ExceptionCode; auto msgPtr = s_crashText; switch( ec )