This is your threading bug Solving these bugs often involves doing less, but thinking through them can be tricky.