ITS#9983 Also fix c_refcnt sequencing

This commit is contained in:
Ondřej Kuzník 2023-01-18 13:05:47 +00:00 committed by Quanah Gibson-Mount
parent 0df9d9156a
commit e6e42642ca

View file

@ -422,8 +422,8 @@ struct LloadConnection {
#define CONNECTION_UNLINK_(c) \
do { \
if ( __atomic_exchange_n( &(c)->c_live, 0, __ATOMIC_ACQ_REL ) ) { \
RELEASE_REF( (c), c_refcnt, c->c_destroy ); \
(c)->c_unlink( (c) ); \
RELEASE_REF( (c), c_refcnt, c->c_destroy ); \
} \
} while (0)
#define CONNECTION_DESTROY(c) \