In the end, the Company sued for peace. Haidar was successfully bought off: a treaty was signed and the Mysore forces returned home. But the fact that the Company could now be so easily surprised and defeated was a lesson noted with satisfaction in many courts in India, particularly that of Haidar in Mysore and the Marathas in Pune.