protected override void OnConnectionClosed(ConnectionClosedEventArgs args)
        {
            this.cipher?.Dispose();
            this.cipher = null;
            this.dh     = null;

            base.OnConnectionClosed(args);
        }
Example #2
0
 protected override void OnConnectionClosed(ConnectionClosedEventArgs args)
 {
     if (this.session != null)
     {
         this.session?.Close();
         rpcPeer.OnSessionClosed(new SessionClosedEventArgs(this.session, this));
     }
     base.OnConnectionClosed(args);
 }