In most cases, you want to let the cake cool completely before adding the glaze. Trying to glaze a hot cake will thin out the glaze, causing more to drip off of the cake.