Changeset 3388

Show
Ignore:
Timestamp:
11/12/06 22:43:45 (2 years ago)
Author:
timothy
Message:

Make sure the quit message always has time to send, this change makes us wait until the server closes the connection. #77

Files:

Legend:

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

    r3357 r3388  
    235235                } else [self sendRawMessage:@"QUIT" immediately:YES]; 
    236236        } 
    237  
    238         if( _connectionThread ) 
    239                 [_chatConnection performSelector:@selector( disconnectAfterWriting ) inThread:_connectionThread]; 
    240237} 
    241238 
  • trunk/Plug-Ins/Standard Commands/JVStandardCommands.m

    r3381 r3388  
    487487                while( ( channel = [chanEnum nextObject] ) ) { 
    488488                        channel = [channel stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; 
    489                         [(NSMutableArray *)channels addObject:channel]; 
     489                        if( [channel length] ) 
     490                                [(NSMutableArray *)channels addObject:channel]; 
    490491                } 
    491492