internal/pipewire: check pending ids after done

This is not guaranteed to have completed after a roundtrip. This is leftover from when Roundtrip also sent and waited for sync.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-12-06 21:09:55 +09:00
parent f44923da29
commit bb1fc4c7bc
2 changed files with 6 additions and 8 deletions

View File

@@ -3,6 +3,8 @@ package pipewire
import (
"errors"
"fmt"
"maps"
"slices"
"strconv"
"time"
)
@@ -373,6 +375,10 @@ func (core *Core) Sync() error {
}
}
if len(core.ctx.pendingIds) != 0 {
core.ctx.closeReceivedFiles()
return &ProxyFatalError{Err: UnacknowledgedProxyError(slices.Collect(maps.Keys(core.ctx.pendingIds))), ProxyErrs: core.ctx.cloneAsProxyErrors()}
}
return core.ctx.doSyncComplete()
}