public void removeFromApplication(boolean bFreeIfDone)
    {
        if (m_application == null)
            return; // In free.
        Application app = m_application;
        m_application = null;
        boolean bEmptyTaskList = app.removeTask(this);    // Remove this session from the list
        if (bFreeIfDone)
            if (bEmptyTaskList)
                app.free();     // No more tasks -> Quit app!
    }
public void removeFromApplication ( boolean bFreeIfDone ) { if ( m_application == null ) return ; Application app = m_application ; m_application = null ; boolean bEmptyTaskList = app . removeTask ( this ) ; if ( bFreeIfDone ) if ( bEmptyTaskList ) app . free ( ) ; }
Remove this task or session to my parent application.
@param bFreeIfDone If true and the application is empty, free the application.