The child thread should exit by itself. If you are using a socket, the main thread must create the socket listener. After receiving the message, it creates the socket client and then passes it to the child thread. The child thread operates on the client. If an error occurs, it will not affect the listener
The child thread should exit by itself. If you are using a socket, the main thread must create the socket listener. After receiving the message, it creates the socket client and then passes it to the child thread. The child thread operates on the client. If an error occurs, it will not affect the listener