Sfoglia il codice sorgente

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.
Lioncash 7 anni fa
parent
commit
b1a4ab2ccc
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      src/core/telemetry_session.cpp

+ 1 - 2
src/core/telemetry_session.cpp

@@ -116,12 +116,11 @@ TelemetrySession::~TelemetrySession() {
     auto backend = std::make_unique<Telemetry::NullVisitor>();
 #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);
     if (Settings::values.enable_telemetry) {
         backend->Complete();
     }
-    backend = nullptr;
 }
 
 void TelemetrySession::AddInitialInfo(Loader::AppLoader& app_loader) {