Skip to content

Commit

Permalink
Merge pull request #19 from xray-bit/fix-overlapped
Browse files Browse the repository at this point in the history
Resolve the panic occurs when sending long data from JS to Go
  • Loading branch information
leaanthony authored Sep 12, 2024
2 parents 11ef710 + 92175bb commit 26a35b4
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 @@ -423,7 +423,7 @@ func (e *Chromium) MessageReceived(sender *ICoreWebView2, args *ICoreWebView2Web
uintptr(unsafe.Pointer(sender)),
uintptr(unsafe.Pointer(_message)),
)
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)
}
windows.CoTaskMemFree(unsafe.Pointer(_message))
Expand Down

0 comments on commit 26a35b4

Please sign in to comment.