mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 10:54:02 +03:00
Fix infinite hangs
This commit is contained in:
@@ -23,6 +23,9 @@ type IntermediateReadWriteCloserWithAddr struct {
|
||||
|
||||
func (i *IntermediateReadWriteCloserWithAddr) Read(p []byte) (int, error) {
|
||||
return i.BufferedRead(p, func() error {
|
||||
i.opts.QuickAck = false
|
||||
i.opts.SimpleAck = false
|
||||
|
||||
buf := &bytes.Buffer{}
|
||||
buf.Grow(4)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user