File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -627,6 +627,7 @@ var Cmi5;
627627 callbackWrapper = function ( err ) {
628628 this . log ( "completed - callbackWrapper: " + err ) ;
629629 if ( err === null ) {
630+ this . setProgress ( null ) ;
630631 this . _completed = true ;
631632 }
632633
@@ -638,6 +639,7 @@ var Cmi5;
638639 this . log ( "completed - result: " , result ) ;
639640
640641 if ( ! callback && result . response . err === null ) {
642+ this . setProgress ( null ) ;
641643 this . _completed = true ;
642644 }
643645
@@ -1346,7 +1348,7 @@ var Cmi5;
13461348 stCfg . verb . display = verbDisplay [ verbId ] ;
13471349 }
13481350
1349- if ( progress !== null ) {
1351+ if ( verbId !== VERB_COMPLETED_ID && progress !== null ) {
13501352 stCfg . result = {
13511353 extensions : {
13521354 "https://w3id.org/xapi/cmi5/result/extensions/progress" : progress
You can’t perform that action at this time.
0 commit comments