Skip to content

Commit

Permalink
usb2snes: fix GetFile opcode to not respond in websocket fragments bu…
Browse files Browse the repository at this point in the history
…t instead whole messages for each chunk returned
  • Loading branch information
JamesDunne committed Mar 30, 2022
1 parent f95e65c commit 525c915
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/usb2snes/usb2snes.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ func (w *wsWriter) Write(p []byte) (n int, err error) {
}

if w.written >= w.frameSize {
err = w.w.FlushFragment()
//err = w.w.FlushFragment()
err = w.w.Flush()
w.written = 0
}
return
Expand Down

0 comments on commit 525c915

Please sign in to comment.