app/src/main/java/com/michael/bci/ActivityRecognizedService.java
private void CloseChannel() throws IOException, TimeoutException {
        if (channel_2 != null)
        {
            channel_2.close();
            channel_2 = null;
            Log.d(TAG, "RMQ: Close Channel 2 for Activity");
        }

        if (connection != null)
        {
            connection.close();
            connection = null;
            Log.d(TAG, "RMQ: Close Connection for Activity");
        }
    }
// Cleanup the channel and leave it in an uninitialized state
Cleanup the channel and leave it in an uninitialized state
Cleanup the channel and leave it in an uninitialized state
private void CloseChannel() throws IOException, TimeoutException {
        if (channel_2 != null)
        {
            channel_2.close();
            channel_2 = null;
            Log.d(TAG, "RMQ: Close Channel 2 for Activity");
        }
        if (connection != null)
        {
            connection.close();
            connection = null;
            Log.d(TAG, "RMQ: Close Connection for Activity");
        }
    }
private void CloseChannel ( ) throws IOException , TimeoutException { if ( channel_2 != null ) { channel_2 . close ( ) ; channel_2 = null ; Log . d ( TAG , "RMQ: Close Channel 2 for Activity" ) ; } if ( connection != null ) { connection . close ( ) ; connection = null ; Log . d ( TAG , "RMQ: Close Connection for Activity" ) ; } }
Cleanup the channel and leave it in an uninitialized state
Cleanup the channel and leave it in an uninitialized state