fix: 消息进行wg关闭销毁

This commit is contained in:
TsMask
2024-09-26 17:23:24 +08:00
parent b995ac378a
commit c33000045a
2 changed files with 6 additions and 3 deletions

View File

@@ -193,8 +193,8 @@ export function usePCAP() {
stop_time: 0,
elapsed_time: 0,
};
state.finishedProcessing = false;
state.finishedProcessing = false;
wk.send({ type: 'process', file: file });
}
@@ -300,7 +300,7 @@ export function usePCAP() {
});
onBeforeUnmount(() => {
wk.close();
wk.send({ type: 'close' }) && wk.close();
});
return {