Merge pull request #11971 from sethalves/possible-fix-for-tablet-freezing

possible fix for tablet freezing
This commit is contained in:
Brad Hefta-Gaub 2017-12-13 08:59:17 -08:00 committed by GitHub
commit 9bbe696a87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -154,6 +154,15 @@ Script.include("/~/system/libraries/controllerDispatcherUtils.js");
};
this.update = function () {
try {
_this.updateInternal();
} catch (e) {
print(e);
}
Script.setTimeout(_this.update, BASIC_TIMER_INTERVAL_MS);
};
this.updateInternal = function () {
if (PROFILE) {
Script.beginProfileRange("dispatch.pre");
}
@ -376,7 +385,6 @@ Script.include("/~/system/libraries/controllerDispatcherUtils.js");
if (PROFILE) {
Script.endProfileRange("dispatch.run");
}
Script.setTimeout(_this.update, BASIC_TIMER_INTERVAL_MS);
};
this.setBlacklist = function() {