diff --git a/scripts/system/+android/displayNames.js b/scripts/system/+android/displayNames.js index 1e9735d205..9f226f5ce0 100644 --- a/scripts/system/+android/displayNames.js +++ b/scripts/system/+android/displayNames.js @@ -128,7 +128,13 @@ function excludeMyAvatar() { rayExclusionList = [MyAvatar.sessionUUID]; } +var runAtLeastOnce = false; + function ending() { + if (!runAtLeastOnce) { + return; + } + Controller.touchBeginEvent.disconnect(touchBegin); Controller.touchEndEvent.disconnect(touchEnd); Controller.mousePressEvent.disconnect(touchBegin); @@ -157,6 +163,8 @@ function init() { rayExclusionList = [MyAvatar.sessionUUID]; MyAvatar.sessionUUIDChanged.connect(excludeMyAvatar); + + runAtLeastOnce = true; } module.exports = {