From 5a3140c84aa3f99def4b11852536e429445b3e7b Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Wed, 11 Aug 2021 23:25:56 +0200 Subject: [PATCH] THeartbeatThread: fix error reporting --- src/THeartbeatThread.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/THeartbeatThread.cpp b/src/THeartbeatThread.cpp index 5656aaa..fcacf0d 100644 --- a/src/THeartbeatThread.cpp +++ b/src/THeartbeatThread.cpp @@ -41,8 +41,7 @@ void THeartbeatThread::operator()() { if (T.substr(0, 2) != "20") { auto SentryReportError = [&](const std::string& transaction) { - if (T.size() > std::string("YOU_SHALL_NOT_PASS").size() - && Application::Settings.Key.size() == 36) { + if (T != "YOU_SHALL_NOT_PASS") { auto Lock = Sentry.CreateExclusiveContext(); Sentry.SetContext("heartbeat", { { "response-body", T },