fix condition that would cause hang when batch size is 0 and we hit the recieve timeout