If a bridge has two of its ports on the same network, then every message sent by the bridge to that network would be received at the other port of the bridge, that’s how it would detect that two of its ports are connected to the same network. As soon as the bridge detects that two of its ports are on the same network, it can stop sending and listening on one of the ports.