public void shutdown(Exception closeReason) { lock (locker) { this.closeReason = closeReason; } if (this.local != null) { manager.removeProtocolTransport(this); } else { ((ClientManagerImpl)manager).connectAbort(this); } }
public void shutdown(bool eventually, Exception closeReason) { lock (locker) { this.closeReason = closeReason; } if (eventually) { manager.removeProtocolTransport(this); } else { ((ClientManagerImpl)manager).connectAbort(this); } }