Set the query and resume threads to the just-stopped thread.