def _reset_history(self): self._revoked_uids = set() self._listen_history = ListenHistory( maxlen=self._session.config['history_max_pkg'], time_threshold_sec=self._session.config['history_timeout'], max_group_size=self._session.config['history_pkg_size']) self._rule_index = RuleIndex( maxlen=self._session.config['history_max_rules']) self._playcounts = Counter()