Fix for regression in 2.3 connecting with Calibre Companion caused by the performance improvement in 829447f01fd34dd780a7ee6083cdd53b751e5c40