Assert fifo refcnt on the right thread
Type: fix
Signed-off-by: Florin Coras <[email protected]>
Change-Id: If6edf9969f5c70533a1e9c6358c022c556c4ed81
/* Passive open already cleaned up */
if (ps->po.session_handle == SESSION_INVALID_HANDLE)
{
- ASSERT (s->rx_fifo->refcnt == 1);
-
/* The two sides of the proxy on different threads */
if (ps->po.tx_fifo->master_thread_index != s->thread_index)
{
proxy_session_postponed_free (ps);
}
else
- proxy_session_free (ps);
+ {
+ ASSERT (s->rx_fifo->refcnt == 1);
+ proxy_session_free (ps);
+ }
}
}
else