Changeset 3714

Show
Ignore:
Timestamp:
08/15/07 11:05:33 (1 year ago)
Author:
timothy
Message:

Change how the runloop spins.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Chat Core/MVICBChatConnection.m

    r3712 r3714  
    414414        pool = nil; 
    415415 
    416         BOOL active = YES; 
    417         while( active && ( _status == MVChatConnectionConnectedStatus || 
    418                                            _status == MVChatConnectionConnectingStatus || 
    419                                            [_chatConnection isConnected] ) ) { 
     416        while( _status == MVChatConnectionConnectedStatus || 
     417           _status == MVChatConnectionConnectingStatus || 
     418           [_chatConnection isConnected] ) { 
    420419                pool = [[NSAutoreleasePool alloc] init]; 
    421                 active = [[NSRunLoop currentRunLoop] 
    422                          runMode:NSDefaultRunLoopMode 
    423                                  beforeDate:[NSDate dateWithTimeIntervalSinceNow:5.]]; 
     420                [[NSRunLoop currentRunLoop] 
     421            runMode:NSDefaultRunLoopMode 
     422            beforeDate:[NSDate dateWithTimeIntervalSinceNow:5.]]; 
    424423                if( [pool respondsToSelector:@selector( drain )] ) 
    425424                        [pool drain];