A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/jstarks/npiperelay/commit/003b169c95022719f39f620dee5acadbd9d421e3 below:

Close event handles when file is closed · jstarks/npiperelay@003b169 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+11

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+11

-1

lines changed Original file line number Diff line number Diff line change

@@ -77,8 +77,18 @@ func (f *overlappedFile) Write(b []byte) (int, error) {

77 77

}

78 78 79 79

func (f *overlappedFile) Close() error {

80 -

windows.Close(f.h)

80 +

err := windows.Close(f.h)

81 +

if err != nil {

82 +

panic(err)

83 +

}

81 84

f.h = 0

85 +

for _, h := range f.e {

86 +

err := windows.Close(h)

87 +

if err != nil {

88 +

panic(err)

89 +

}

90 +

}

91 +

f.e = nil

82 92

return nil

83 93

}

84 94

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4