From 6d50d26b57fb9ee7030f04c269aa932657042d11 Mon Sep 17 00:00:00 2001 From: Qv2ray-dev <59914293+Qv2ray-dev@users.noreply.github.com> Date: Mon, 29 Jun 2020 00:20:25 +0800 Subject: [PATCH] fix: make StackTrace ready to go --- src/main.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 1a1fe9f1..27613558 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -12,7 +12,6 @@ void signalHandler(int signum) { std::cout << "Qv2ray: Interrupt signal (" << signum << ") received." << std::endl; -#ifdef QT_DEBUG if (signum == SIGSEGV) { const auto msg = StackTraceHelper::GetStackTrace(); @@ -30,7 +29,6 @@ void signalHandler(int signum) QvMessageBoxWarn(nullptr, "UNCAUGHT EXCEPTION", message); } } -#endif // qvApp->QuitApplication(-99); exit(-99); } @@ -95,11 +93,6 @@ Qv2rayExitCode RunQv2rayApplicationScoped(int argc, char *argv[]) signal(SIGUSR1, [](int) { ConnectionManager->RestartConnection(); }); signal(SIGUSR2, [](int) { ConnectionManager->StopConnection(); }); #endif - - { - QObject *p; - p->event(nullptr); - } return app.RunQv2ray(); }