As TURE is not defined, in order to be compatible use while(1)

Signed-off-by: winton.liu <newtonliuwen@gmail.com>