fix undefined error when calling leaveroom

this fixes leaving a  room for me as it seems that it was calling peers on the wrong object.