Fixed a bug when a worker replies at nearly the same time the request times out