app/src/main/java/com/yahala/xmpp/XMPPManager.java
/**
     * calls cleanupConnection and
     * sets _status to DISCONNECTED
     */
calls cleanupConnection and
sets _status to DISCONNECTED
calls cleanupConnection and sets _status to DISCONNECTED
private void stop() {
        FileLog.e("Test Internet", "stop");
        /*connectionState = ConnectionState.DISCONNECTING;
        Utilities.RunOnUIThread(new Runnable() {
            @Override
            public void run() {
                NotificationCenter.getInstance().postNotificationName(connectionStateDidChanged);
                FileLog.e("Test Internet", "RunOnUIThread");
                //  Toast.makeText(ApplicationLoader.applicationContext, "Disconnecting", Toast.LENGTH_LONG).show();
            }
        });*/
        cleanupConnection();
        connectionState = ConnectionState.DISCONNECTED;
        connection = null;
        Utilities.RunOnUIThread(new Runnable() {
            @Override
            public void run() {
                FileLog.e("Test Internet", "RunOnUIThread");
                NotificationCenter.getInstance().postNotificationName(connectionStateDidChanged);
            }
        });
    }
private void stop ( ) { FileLog . e ( "Test Internet" , "stop" ) ; /*connectionState = ConnectionState.DISCONNECTING;
        Utilities.RunOnUIThread(new Runnable() {
            @Override
            public void run() {
                NotificationCenter.getInstance().postNotificationName(connectionStateDidChanged);
                FileLog.e("Test Internet", "RunOnUIThread");
                //  Toast.makeText(ApplicationLoader.applicationContext, "Disconnecting", Toast.LENGTH_LONG).show();
            }
        });*/ cleanupConnection ( ) ; connectionState = ConnectionState . DISCONNECTED ; connection = null ; Utilities . RunOnUIThread ( new Runnable ( ) { @ Override public void run ( ) { FileLog . e ( "Test Internet" , "RunOnUIThread" ) ; NotificationCenter . getInstance ( ) . postNotificationName ( connectionStateDidChanged ) ; } } ) ; }
calls cleanupConnection and
 sets _status to DISCONNECTED
calls cleanupConnection and sets _status to DISCONNECTED
//Toast.makeText(ApplicationLoader.applicationContext, "Disconnected", Toast.LENGTH_LONG).show();