ff38547d80
We need to return -1, when there is still tasks. From the usage, return 1 is wrong. Change-Id: Ibf1b53e0be92818c73590c0b4211d34332073c74 Signed-off-by: Ziye Yang <ziye.yang@intel.com>