fix bug, when accept failed, start a new cycle for accepting following connections