Exemplo n.º 1
0
 protected override void DoDisconnect(string reason)
 {
     try {
         socket.Disconnect();
     } catch {
         // no point logging disconnect failures
     }
 }
Exemplo n.º 2
0
 protected override void DoDisconnect(string reason)
 {
     disconnecting = true;
     try {
         if (api != null)
         {
             api.StopAsync();
         }
         socket.Disconnect();
     } finally {
         disconnected = true;
         UnregisterEvents();
     }
 }