move flag test above ring->get
move flag test above ring->get

chenm001/connectal,hanw/connectal,hanw/connectal,hanw/connectal,chenm001/connectal,cambridgehackers/connectal,8l/connectal,cambridgehackers/connectal,8l/connectal,csail-csg/connectal,cambridgehackers/connectal,hanw/connectal,hanw/connectal,chenm001/connectal,csail-csg/connectal,cambridgehackers/connectal,csail-csg/connectal,8l/connectal,csail-csg/connectal,8l/connectal,cambridgehackers/connectal,chenm001/connectal,csail-csg/connectal,8l/connectal,chenm001/connectal