[tcpapiservercompoennt] fixed atomic<bool> failure;