04-09-2023, 04:50 AM
Another problem has arisen. When a client is connected to TIdTCPServer *Server, OnConnect is triggered, but when the client is disconnected, OnDisconnect does not trigger, and it only triggers when the server is disconnected by setting Server->Active=false. Why is this happening?

