void myqtt_conn_unref ( MyQttConn connection,
char const *  who 

Decrease myqtt connection reference counting.

Allows to decrease connection reference counting. If this reference counting goes under 0 the connection resources will be de-allocated.

See also myqtt_conn_ref

connectionThe connection to operate.
whoWho have decreased the reference. This is a string value used to log which entity have decreased the connection counting.

References myqtt_conn_free(), myqtt_mutex_lock(), and myqtt_mutex_unlock().

Referenced by myqtt_conn_close(), myqtt_conn_send_connect_reply(), myqtt_listener_accept_connection(), and myqtt_listener_shutdown().