FR 157 then EI 594 at Dublin
Leeds → Dublin → Madrid
Timetable, Dublin time
21:40FR 157 from Leeds at the gate
16:15EI 594 to Madrid leaves the gate
18 h 35 apart on the timetable, overnight
EI 594 leaves 18 h 35 after FR 157 arrives on the timetable: more than half a day, so not a connection we count.