Fix METADAPT-A transaction IDs not starting at 1/-1
This commit is contained in:
parent
9b89c47ecc
commit
0fed1a2451
@ -37,6 +37,11 @@ func AdaptA(underlying net.Conn, party Party) Conn {
|
|||||||
transChan: make(chan *transA),
|
transChan: make(chan *transA),
|
||||||
done: make(chan struct { }),
|
done: make(chan struct { }),
|
||||||
}
|
}
|
||||||
|
if party == ClientSide {
|
||||||
|
conn.transID = 1
|
||||||
|
} else {
|
||||||
|
conn.transID = -1
|
||||||
|
}
|
||||||
go conn.receive()
|
go conn.receive()
|
||||||
return conn
|
return conn
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user