tell stupid ai not to meddle with the paths on other platforms by adding a copy

This commit is contained in:
Ryan Huber
2025-10-31 14:16:02 -04:00
parent 68746bd907
commit 29157f413c
5 changed files with 21 additions and 13 deletions

View File

@@ -452,12 +452,23 @@ func (s *sendShard) flushPendingLocked() error {
if queue == nil {
err = s.processTask(task)
} else {
defer func() {
if r := recover(); r != nil {
err = s.processTask(task)
sent := false
func() {
defer func() {
if r := recover(); r != nil {
err = s.processTask(task)
sent = true
}
}()
select {
case queue <- task:
sent = true
default:
}
}()
queue <- task
if !sent {
err = s.processTask(task)
}
}
s.mu.Lock()
return err