simplify logic in realtime_peer(), removing an unnecessary