xml保存并关闭逻辑
This commit is contained in:
parent
e02d0e0513
commit
d0d1429118
@ -72,6 +72,8 @@ class XMLWriter(IOutput):
|
|||||||
|
|
||||||
def terminate(self):
|
def terminate(self):
|
||||||
print("保存所有弹幕文件中...")
|
print("保存所有弹幕文件中...")
|
||||||
for _room_id in self._file_mappings:
|
# copy
|
||||||
|
_rooms = [i for i in self._file_mappings.keys()]
|
||||||
|
for _room_id in _rooms:
|
||||||
self._close_fd_by_room_id(_room_id)
|
self._close_fd_by_room_id(_room_id)
|
||||||
print("保存完毕")
|
print("保存完毕")
|
||||||
|
Reference in New Issue
Block a user