We numerically investigate the competition between phase separation and dynamical arrest in a colloidal system interacting via a short-ranged attractive potential. Equilibrium fluid configurations are quenched at two different temperatures below the critical temperature and followed during their time evolution. At the lowest studied T, the phase-separation process is interrupted by the formation of an attractive glass in the dense phase. At the higher T, no arrest is observed and the phase-se...