Joseph's successor Leopold II was compelled to end the war due to the threat of Prussian intervention in support of the Ottomans [REF].
For discussion of the fate of Serbia during the war, see Habsburg-occupied Serbia (1788-92).