Skip to content

Commit

Permalink
Use the improved position validity test to determine when to clear ne…
Browse files Browse the repository at this point in the history
…xtPoint.position value when stream source is the cmdSource. (#1844)
  • Loading branch information
panaaj authored Dec 10, 2024
1 parent 434bc01 commit e92ccaf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/api/course/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,11 @@ export class CourseApi {
}

if (this.isCurrentCmdSource(cmdSource)) {
if (!pos) {
debug('parseStreamValue:', 'No position... Clear Destination...')
if (!this.isValidPosition(pos)) {
debug(
'parseStreamValue:',
'No or invalid position... Clear Destination...'
)
this.clearDestination()
return
}
Expand Down

0 comments on commit e92ccaf

Please sign in to comment.