Adium

Changeset 24057

Show
Ignore:
Timestamp:
06/24/2008 06:56:36 PM (5 months ago)
Author:
evands
Message:

Remove all contacts after noting that we are now offline, not after, so that code responding to this knows that the account is offline. Refs #10181

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Frameworks/Adium Framework/Source/AIAbstractAccount.m

    r23726 r24057  
    12721272        } 
    12731273         
    1274         //Remove all contacts 
    1275         [self removeAllContacts]; 
    1276  
    12771274        //We are now offline 
    12781275    [self setValue:nil forProperty:@"Disconnecting" notify:NotifyLater]; 
     
    12821279        //Stop all autorefreshing keys 
    12831280        [self stopAutoRefreshingStatusKey:nil]; 
    1284          
     1281 
    12851282        //Apply any changes 
    12861283    [self notifyOfChangedPropertiesSilently:NO]; 
     1284 
     1285        //Remove all contacts 
     1286        [self removeAllContacts]; 
    12871287         
    12881288        //If we were disconnected unexpectedly, attempt a reconnect. Give subclasses a chance to handle the disconnection error.