c++, member thread object causes crash on structure deletion when it’s running

I’ve got a player class that has a kick function where I need to wait for a bit and kick the player afterwards for reasons out of my control and I also need to not hold the function while I wait, so my problem is;
When the thread is done w…