mirror of
https://github.com/slackhq/nebula.git
synced 2025-12-31 02:58:28 +01:00
tell stupid ai not to meddle with the paths on other platforms by adding a copy
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user