@@ -322,7 +322,7 @@ class VPNService : android.net.VpnService() {
322
322
// Record data transfer metrics, as we're switching servers/configs and this data will get reset
323
323
// Data metrics must be recorded prior to wgTurnOff, or we can't get data from the config
324
324
if (isSuperDooperMetricsActive) {
325
- recordDataTransferMetrics()
325
+ recordDataTransferMetrics()
326
326
}
327
327
328
328
wgTurnOff(currentTunnelHandle)
@@ -368,13 +368,13 @@ class VPNService : android.net.VpnService() {
368
368
369
369
// If changing server, connection health is still running
370
370
if (! isChangingServers) {
371
- mConnectionHealth.start(
372
- jServer.getString(" ipv4AddrIn" ),
373
- jServer.getString(" ipv4Gateway" ),
374
- json.getString(" dns" ),
375
- fallbackIpv4,
376
- isSuperDooperMetricsActive,
377
- )
371
+ mConnectionHealth.start(
372
+ jServer.getString(" ipv4AddrIn" ),
373
+ jServer.getString(" ipv4Gateway" ),
374
+ json.getString(" dns" ),
375
+ fallbackIpv4,
376
+ isSuperDooperMetricsActive,
377
+ )
378
378
}
379
379
380
380
// For `isGleanDebugTagActive` and `isSuperDooperMetricsActive` to work,
@@ -409,7 +409,7 @@ class VPNService : android.net.VpnService() {
409
409
Pings .daemonsessionReasonCodes.daemonStart,
410
410
)
411
411
} else {
412
- Log .v(tag, " Skipping recording of start telemetry" )
412
+ Log .v(tag, " Skipping recording of start telemetry" )
413
413
}
414
414
mMetricsTimer.cancel() // if this is a server switch, time is already running and must be reset
415
415
mMetricsTimer.start()
@@ -465,7 +465,7 @@ class VPNService : android.net.VpnService() {
465
465
466
466
fun turnOff () {
467
467
Log .v(tag, " Try to disable tunnel" )
468
- // turnOff is not called when switching locations, doing a silent server switch from app, or doing a silent server switch from daemon...
468
+ // turnOff is not called when switching locations, doing a silent server switch from app, or doing a silent server switch from daemon...
469
469
// Thus we always want to record end-of-session metrics here, and send the ping below.
470
470
if (isSuperDooperMetricsActive) {
471
471
// Data metrics must be recorded prior to wgTurnOff, or we can't get data from the config
@@ -497,7 +497,7 @@ class VPNService : android.net.VpnService() {
497
497
// metrics.
498
498
Session .daemonSessionId.generateAndSet()
499
499
} else {
500
- Log .v(tag, " Skipping ending metrics" )
500
+ Log .v(tag, " Skipping ending metrics" )
501
501
}
502
502
mMetricsTimer.cancel()
503
503
}
0 commit comments