v0.3.7: 全面代码审计修复 - 20项Bug/安全/稳定性改进
This commit is contained in:
@@ -24,8 +24,8 @@ export class FileWatcher {
|
||||
})
|
||||
// L-02: 监听 error 事件,文件被删除时显式关闭并清理状态
|
||||
this.watcher.on('error', () => {
|
||||
this.stop()
|
||||
const originalPath = this.currentPath
|
||||
this.stop()
|
||||
if (originalPath) {
|
||||
const pollInterval = setInterval(() => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user