He’s brought back to reality once Harry has finally "blown out" his candles. By that he means Sirius has lost his patience, made Remus distract Lily, and then maneuvered behind Harry to blow out the candles, and then made a run for it. Lily pretends to be upset and pouting, but James can see a smile starting to bloom. 