Odds and ends
This commit is contained in:
parent
e94185681f
commit
2326d6a4d7
16 changed files with 139 additions and 164 deletions
|
|
@ -125,7 +125,9 @@ func (f *NativeTUN) Events() chan TUNEvent {
|
|||
}
|
||||
|
||||
func (f *NativeTUN) Close() error {
|
||||
return windows.Close(f.fd)
|
||||
close(f.events)
|
||||
err := windows.Close(f.fd)
|
||||
return err
|
||||
}
|
||||
|
||||
func (f *NativeTUN) Write(b []byte) (int, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue