[tor-commits] [tpo/master] this conditions were not working. this is a better solution