To detect latch deadlocks on a gate, the packet gateway (PG) uses data inactivity detection. There are two delays that can be configured: a delay for terminations that do not include a latch event and a delay for terminations that do include a latch event.