remove unneed code in  cancelInternalAndStop

the judge in cancelInternalAndStop also in cancelInternal