LA 6139 then LA 8938 at San Francisco
Boston → San Francisco → New York JFK
Timetable, San Francisco time
23:58LA 6139 from Boston at the gate
22:55LA 8938 to New York JFK leaves the gate
22 h 57 apart on the timetable, overnight
LA 8938 leaves 22 h 57 after LA 6139 arrives on the timetable: more than half a day, so not a connection we count.