mirror of
https://github.com/lwch/natpass.git
synced 2026-10-21 05:22:00 +00:00
修正关闭连接时的崩溃问题
This commit is contained in:
@@ -126,9 +126,11 @@ func (p *Process) Close() {
|
||||
}
|
||||
if p.chImage != nil {
|
||||
close(p.chImage)
|
||||
p.chImage = nil
|
||||
}
|
||||
if p.chWrite != nil {
|
||||
close(p.chWrite)
|
||||
p.chWrite = nil
|
||||
}
|
||||
p.kill()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user