remove empty infinite loop in server