[skip ci] small fixes
This commit is contained in:
1 parent
7286c099a0
commit
48b10e8618
2 files changed
+6
-3
No files matched your search
@@ -17,6 +17,9 @@ namespace Innertube
|
|||||||
if sessionData = invalid or not IsInt(sessionData.timestamp)
|
if sessionData = invalid or not IsInt(sessionData.timestamp)
|
||||||
return false
|
return false
|
||||||
end if
|
end if
|
||||||
|
if StringUtils.IsNullOrEmpty(sessionData.visitorData)
|
||||||
|
return false
|
||||||
|
end if
|
||||||
nowSeconds = TimeUtils.Now().AsSeconds()
|
nowSeconds = TimeUtils.Now().AsSeconds()
|
||||||
return nowSeconds - sessionData.timestamp <= INNERTUBE_VISITOR_DATA_LIFESPAN_SECONDS
|
return nowSeconds - sessionData.timestamp <= INNERTUBE_VISITOR_DATA_LIFESPAN_SECONDS
|
||||||
end function
|
end function
|
||||||
|
|||||||
@@ -48,14 +48,14 @@ function TelemetryLoop() as void
|
|||||||
m.dist = GetDist(m.tags)
|
m.dist = GetDist(m.tags)
|
||||||
m.userId = GetUserId()
|
m.userId = GetUserId()
|
||||||
|
|
||||||
ReportSessionStart()
|
|
||||||
ReportLastExitCrash()
|
|
||||||
|
|
||||||
m.top.observeField("LogInfo", msgPort)
|
m.top.observeField("LogInfo", msgPort)
|
||||||
m.top.observeField("LogWarn", msgPort)
|
m.top.observeField("LogWarn", msgPort)
|
||||||
m.top.observeField("LogError", msgPort)
|
m.top.observeField("LogError", msgPort)
|
||||||
m.top.observeField("LogEvent", msgPort)
|
m.top.observeField("LogEvent", msgPort)
|
||||||
|
|
||||||
|
ReportSessionStart()
|
||||||
|
ReportLastExitCrash()
|
||||||
|
|
||||||
#if SUPPORTS_BATCHING
|
#if SUPPORTS_BATCHING
|
||||||
debouceMs = 2000
|
debouceMs = 2000
|
||||||
debounceCountLimit = 20
|
debounceCountLimit = 20
|
||||||
|
|||||||
Reference in new issue
Block a user