a09129d220
There is no need to use a mutex to check the length of the proxies list, as it's read-only during the whole lifetime of a ProxyRotator structure. Moreover, it's a bit clearer to explicitly wrap the 2 lines of mutex-needing operations between a Lock/Unlock instead of using a defer.