How to make this function

Don’t duplicate threads