mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-05 23:36:23 +00:00
Sentry: use locked contexts to send data to avoid races
This commit is contained in:
@@ -297,6 +297,7 @@ void TNetwork::Authentication(SOCKET TCPSock) {
|
||||
if (!AuthResponse.IsObject() && Rc != "0") {
|
||||
ClientKick(*Client, "Backend returned invalid auth response format.");
|
||||
error("Backend returned invalid auth response format. This should never happen.");
|
||||
auto Lock = Sentry.CreateExclusiveContext();
|
||||
Sentry.AddExtra("response-body", Rc);
|
||||
Sentry.AddExtra("key", RequestString);
|
||||
Sentry.SetTransaction(Application::GetBackendUrlForAuth() + Target);
|
||||
|
||||
Reference in New Issue
Block a user