app_queue.c: Factor out a connected line update routine.