Changeset 3094

Show
Ignore:
Timestamp:
12/27/05 02:46:57 (3 years ago)
Author:
timothy
Message:

Stop the thread when we disconnect.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/cocoa-networking/Chat Core/MVIRCChatConnection.m

    r3093 r3094  
    11461146        [NSThread prepareForInterThreadMessages]; 
    11471147 
    1148 //      BOOL active = YES; 
    1149 //      while( active && ( _status == MVChatConnectionConnectedStatus || _status == MVChatConnectionConnectingStatus ) ) 
    1150 //              active = [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]]; 
    1151         [[NSRunLoop currentRunLoop] run]; 
     1148        BOOL active = YES; 
     1149        while( active && ( _status == MVChatConnectionConnectedStatus || _status == MVChatConnectionConnectingStatus ) ) 
     1150                active = [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]]; 
    11521151 
    11531152        _connectionThread = nil;