Small refacto check current thread