Change the calculation of next_join_pid to e.pid+1 if current arrial event is peer-join