[sr-dev] git:4.1: tm: safety checks inside t_next_contacts()