Revision f98e5bbf

View differences:

include/Image.h
159 159
    {
160 160
        int rc = 0;
161 161

  
162
        if ((to_enable == true) && (state == DISABLED))
162
        if ( to_enable == true )
163 163
        {
164
            state = READY;
164
            if(state == DISABLED)
165
            {
166
                state = READY;
167
            }
165 168
        }
166
        else if ((to_enable == false) && (state == READY))
169
        else if (state != USED) // to_enable == false
167 170
        {
168 171
            state = DISABLED;
169 172
        }

Also available in: Unified diff