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