After returning to Pola, Tegetthoff kept his fleet in the northern Adriatic, where it patrolled against a possible Italian attack. The Italian ships never came, and on 12 August, the two countries signed the Armistice of Cormons; this ended the fighting and led to the Treaty of Vienna. Though Austria had defeated Italy at Lissa and on land at the Battle of Custoza, the Austrian army was decisively defeated by Prussia at the Battle of Königgrätz. With the war over, "Erzherzog Ferdinand Max" went into the British Royal Navy shipyard in Malta to have her bow repaired. As a result of Austria's defeat, Kaiser Franz Joseph was forced to accede to Hungarian demands for greater autonomy, and the country became Austria-Hungary in the "Ausgleich" of 1867. The two halves of the Dual Monarchy held veto power over the other, and Hungarian disinterest in naval expansion led to severely reduced budgets for the fleet. In the immediate aftermath of the war, the bulk of the Austrian fleet was decommissioned and disarmed.