🐛 修复在事件响应器异常退出后 Recorder 继续执行的bug

This commit is contained in:
2023-11-15 11:37:12 +08:00
parent 0c968be163
commit e90ad53ee6
2 changed files with 23 additions and 7 deletions

View File

@@ -70,6 +70,9 @@ class Processor(ABC):
def __del__(self) -> None:
finish_time = datetime.now(tz=UTC)
if Recorder.is_error_event(self.event_id):
Recorder.del_error_event(self.event_id)
return
historical_data = Recorder.get_historical_data(self.event_id)
historical_data.game_platform = self.game_platform
historical_data.command_type = self.command_type