In 1927 he was arrested for the first time due to his communist ideas. Between 1928 and 1939 he was arrested and released on several occasions, eventually causing him to go underground. When World War II started in Yugoslavia in 1941, he was in Montenegro where he joined the Partisans. Masleša died during the attempted breakout through enemy lines during the Axis Case Black offensive in the summer of 1943.