src/HarmonyHub/Client.cs
/// <summary>
/// Closes the connection with the XMPP server.
/// </summary>
/// <exception cref="ObjectDisposedException">The XmppIm object has been disposed.</exception>
Closes the connection with the XMPP server.
Closes the connection with the XMPP server .
private void CloseStream()
        {
            if (Connected)
            {
                if (_heartbeat != null)
                {
                    _heartbeat.Stop();
                    _heartbeat.Dispose();
                }
                Send("</stream:stream>");
                if (_parser != null)
                    _parser.Dispose();
                Authenticated = false;
                Connected = false;
            }
        }
private void CloseStream ( ) { if ( Connected ) { if ( _heartbeat != null ) { _heartbeat . Stop ( ) ; _heartbeat . Dispose ( ) ; } Send ( " " ) ; if ( _parser != null ) _parser . Dispose ( ) ; Authenticated = false ; Connected = false ; } }
Closes the connection with the XMPP server.
Closes the connection with the XMPP server .
// Kill heartbeat // Close the XML stream. // Kill the stream parser
The XmppIm object has been disposed.
The XmppIm object has been disposed .