RegisteringService should not run infinitely

Signed-off-by: Frca <killerfrca@gmail.com>