Skip to content

Commit b9182ef

Browse files
committed
fix: prevent persistent hang due when failing to send error status
1 parent fbb102b commit b9182ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/machine/usb/msc/msc.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ func (m *msc) sendCSW(status csw.Status) {
164164
}
165165
m.cbw.CSW(status, residue, m.cswBuf)
166166
m.state = mscStateStatusSent
167+
m.queuedBytes = csw.MsgLen
167168
m.sendUSBPacket(m.cswBuf)
168169
}
169170

0 commit comments

Comments
 (0)