During May to July 1942, "Adelaide" was docked at Garden Island for a refit, focused primarily on increasing the ship's anti-aircraft weapon outfit. Consequently, the ship was one of several major Allied vessels in Sydney Harbour during the Japanese midget submarine attack of 31 May 1942. After the refit, "Adelaide" was assigned to Fremantle for convoy escort work in the Indian Ocean.