ASSERTION FAIL while disconnection from client

Hello Everyone,

I am currently facing issue while disconnecting from a client. I am running a timer to check for a certain data, if I am not getting that particular data within a time interval, my nrf5340 should disconnect from the client. 

The problem is that it shows ASSERTION FAIL ISSUE. The system restarts after the error.

Below is my timer handle function.

void auth_timer_callback(struct k_timer *timer_id)
{
    k_timer_stop(&auth_timer);
    int ret;
    if(auth_status == false)
    {
        printk("Now Disconnecting......\n");
        ret = bt_conn_disconnect(my_conn, BT_HCI_ERR_REMOTE_USER_TERM_CONN);
        if (ret < 0) {
         printk("Failed to disconnect the connection (err %d)\n", ret);
        }
        bt_conn_unref(my_conn);
    }
}

Error Screenshot:

Related