 The lateness of the season, the loss of approximately 40,000 of his men in battle, the general exhaustion of the Ottoman army, and the fact that his large force was also running out of supplies compelled Osman II to accept a request from the defenders to start negotiations, even though the Polish-Lithuanian forces were almost out of supplies (a legend has it that by the end of the siege, the Commonwealth army was down to its last barrel of gunpowder).A peace treaty, the Treaty of Khotyn, was signed on 9 Oct., which reflected the indecisive nature of the battle.In some clauses it favoured the Commonwealth, but the Ottoman Empire also got what it wanted.