George William's desire for a settlement giving him undisturbed possession of Ducal Prussia prevailed over the imperialist policy, which Adam von Schwarzenberg had successfully advised, acceding to the Peace of Prague. The Treaty of Stuhmsdorf left Brandenburg in full possession of Ducal Prussia, but by freeing the Swedish troops under Lennart Torstenson, which had been occupying Prussia and Livonia, it placed both Mecklenburg and Pomerania in the power of Sweden. The treaty also jeopardised the prospect of the acquisition of Pomerania by the House of Hohenzollern on the death, which was imminent, of Duke Bogislaw XIV, and seriously threatened the security of the County of Mark. Therefore, the treaty could be seen as a political mistake by George William, whose gains in the short term were outweighed by his losses in the long term.