Fix METADAPT-A transaction IDs not starting at 1/-1

This commit is contained in:
Sasha Koshka 2025-01-24 23:06:46 -05:00
parent 9b89c47ecc
commit 0fed1a2451

View File

@ -37,6 +37,11 @@ func AdaptA(underlying net.Conn, party Party) Conn {
transChan: make(chan *transA),
done: make(chan struct { }),
}
if party == ClientSide {
conn.transID = 1
} else {
conn.transID = -1
}
go conn.receive()
return conn
}