new feature: stop query the server when no deals from device to save the cost
now only query 10 times for each deal from device