Internet Direct (Indy) Version 9.0.2 Beta
MClientThread.SelfDisconnected
Indicates that the thread has disconnected after termination.

SelfDisconnected: Boolean;
Description
SelfDisconnected is a Boolean property that indicates that the thread has disconnected after termination. SelfDisconnected is used in TIdTunnelMaster.ClientOperation and Execute when messages are read from or written to the server or client connection, or when disconnect notifications are received.

SelfDisconnected can be set to True if a client requests disconnection from the tunnel, or when a server is notified that a service thread for the tunnel connection is closing.