Skip to content

Commit

Permalink
Merge pull request #13 from lanyeeee/main
Browse files Browse the repository at this point in the history
Fix overlapped I/O error when executing long JS scripts
  • Loading branch information
leaanthony authored Aug 18, 2024
2 parents 1cea6fa + 61a98e4 commit ec81843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/edge/chromium.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func (e *Chromium) Eval(script string) {
uintptr(unsafe.Pointer(_script)),
0,
)
if err != nil && !errors.Is(err, windows.ERROR_SUCCESS) {
if err != nil && !errors.Is(err, windows.ERROR_SUCCESS) && !errors.Is(err, windows.ERROR_IO_PENDING) {
e.errorCallback(err)
}
}
Expand Down

0 comments on commit ec81843

Please sign in to comment.