mirror of
https://github.com/citra-mirror/citra.git
synced 2024-08-20 02:13:23 +02:00
core/telemetry_session: Remove unnecessary web service nulling out in destructor
This will automatically occur when the backend instance goes out of scope at the end of the destructor's execution.
This commit is contained in:
parent
0a82b00e35
commit
aa1b9a18c6
@ -108,12 +108,11 @@ TelemetrySession::~TelemetrySession() {
|
|||||||
auto backend = std::make_unique<Telemetry::NullVisitor>();
|
auto backend = std::make_unique<Telemetry::NullVisitor>();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Complete the session, submitting to web service if necessary
|
// Complete the session, submitting to the web service backend if necessary
|
||||||
field_collection.Accept(*backend);
|
field_collection.Accept(*backend);
|
||||||
if (Settings::values.enable_telemetry) {
|
if (Settings::values.enable_telemetry) {
|
||||||
backend->Complete();
|
backend->Complete();
|
||||||
}
|
}
|
||||||
backend = nullptr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TelemetrySession::AddInitialInfo(Loader::AppLoader& app_loader) {
|
void TelemetrySession::AddInitialInfo(Loader::AppLoader& app_loader) {
|
||||||
|
Loading…
Reference in New Issue
Block a user