Increased SKIN_SHARE_SOFT_LIMIT to 301, so

scratch-vm will not throw a EventEmitter memory leak warning.

Reason:
the max number of clones is 300, plus 1 for itself.
Then the shared skin will exceed it's limit.
Changing the number from 300 to 301 fixes this issue.
This commit is contained in:
Wang Yu 2017-04-18 20:06:02 +08:00
parent ec1e8a3d85
commit dc6ab7da08

View File

@ -16,7 +16,7 @@ module.exports = {
* Going above this may cause middleware warnings or a performance penalty but should otherwise behave correctly.
* @const {int}
*/
SKIN_SHARE_SOFT_LIMIT: 300,
SKIN_SHARE_SOFT_LIMIT: 301,
/**
* @enum {string}