internal virtual void TreeDisconnect(bool inError)
{
lock (Session.Transport())
{
if (ConnectionState != 2)
{
// not-connected
return;
}
ConnectionState = 3;
// disconnecting
if (!inError && Tid != 0)
{
try
{
Send(new SmbComTreeDisconnect(), null);
}
catch (SmbException se)
{
if (Session.transport.Log.Level > 1)
{
Runtime.PrintStackTrace(se, Session.transport.Log);
}
}
}
InDfs = false;
InDomainDfs = false;
ConnectionState = 0;
Runtime.NotifyAll(Session.transport);
}
}