mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-09 10:57:08 +02:00
fix(pglite): do not resend Terminate, which never gets a reply
This commit is contained in:
parent
f4effde18e
commit
0cf80707ac
1 changed files with 1 additions and 1 deletions
|
|
@ -547,7 +547,7 @@ func (pg *PGlite) forwardWire(packet []byte, outFile string) ([][]byte, error) {
|
|||
if !producedBefore && !producedAfter {
|
||||
// No output at all means the backend did not run the packet (a run always emits at
|
||||
// least a completion); seen right after handshakes. Hand it over again, twice at most.
|
||||
if len(packet) > 0 && len(replies) == 0 && resends < 2 {
|
||||
if len(packet) > 0 && packet[0] != 'X' && len(replies) == 0 && resends < 2 {
|
||||
resends++
|
||||
fmt.Fprintf(pg.cfg.Stderr, "# bridge: empty reply to %s; resending (%d)\n", wireTags(packet), resends)
|
||||
if err := pg.send(packet, strings.TrimSuffix(outFile, ".out")); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue