AA 2779 then UA 5940 at O'Hare
Boston → Chicago → Peoria
Timetable, Chicago time
17:36AA 2779 from Boston at the gate
16:40UA 5940 to Peoria leaves the gate
23 h 04 apart on the timetable, overnight
UA 5940 leaves 23 h 04 after AA 2779 arrives on the timetable: more than half a day, so not a connection we count.