mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Changed Rule.resetCounter to delete all keys, allowing for garbage collection
This commit is contained in:
@@ -170,9 +170,9 @@ _.extend(Rule.prototype, {
|
||||
// has exceeded the intervalTime.
|
||||
resetCounter: function () {
|
||||
var self = this;
|
||||
_.each(self.counters, function (value, key) {
|
||||
self.counters[key] = 0;
|
||||
});
|
||||
|
||||
// Delete the old counters dictionary to allow for garbage collection
|
||||
self.counters = {};
|
||||
self._lastResetTime = new Date().getTime();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user