Merge pull request #9 from x500x/main

bugfix: 修复不完全释放句柄的错误
This commit is contained in:
Qin tian
2026-01-06 12:51:35 +08:00
committed by GitHub

View File

@@ -34,7 +34,7 @@ func (d *Divert) IsRunning() bool {
func (d *Divert) Close() {
d.handleMutex.Lock()
if d.handle != nil {
_ = d.handle2.Close()
_ = d.handle.Close()
}
if d.handle2 != nil {
_ = d.handle2.Close()