Skip to content

Commit

Permalink
Issue #SB-7234 merge: Merge pull request #39 from project-sunbird/tel…
Browse files Browse the repository at this point in the history
…emetry-progress

Issue #SB-7234 fix: Added sleepmode in telemetryend
  • Loading branch information
vinukumar-vs authored Sep 11, 2018
2 parents 48e5b52 + ba67052 commit ac0b441
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion player/public/js/baseLauncher.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ org.ekstep.contentrenderer.baseLauncher = Class.extend({
* @memberof org.ekstep.contentrenderer.baseLauncher
*/
end: function() {
if (this.sleepMode) return;
this.heartBeatEvent(false);
this.endTelemetry();
EkstepRendererAPI.dispatchEvent("renderer:endpage:show");
Expand Down Expand Up @@ -120,7 +121,8 @@ org.ekstep.contentrenderer.baseLauncher = Class.extend({
/**
* Generation of OE_END Telemetry event.
*/
endTelemetry: function(event) {
endTelemetry: function() {
if (this.sleepMode) return;
if (TelemetryService.instance && TelemetryService.instance.telemetryStartActive()) {
var telemetryEndData = {};
telemetryEndData.stageid = getCurrentStageId();
Expand Down

0 comments on commit ac0b441

Please sign in to comment.