Fix ring polling loop's abort conditions

Signed-off-by: Owen Smith <owen.smith@citrix.com>