Merge pull request #11990 from sethalves/pr-11971-for-rc-61-x

possible fix for tablet freezing (#11971 for rc-61)
This commit is contained in:
Ryan Downe Karpf 2017-12-14 12:14:44 -08:00 committed by GitHub
commit cccd080727
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() {