natefinch / npipe

A Windows named pipe implementation written in pure Go.
MIT License
297 stars 73 forks source link

Fix the bug closing same windows handler twice. #25

Open lnkyan opened 5 years ago

lnkyan commented 5 years ago

The overlapped.HEvent has been closed in PipeListener.Close and reset to 0. But close again in PipeListener.AcceptPipe with origin HEvent. So that throw a panic which cannot be recovered.