Changed join(chan) to join(chan, rejoin)