Changeset 1357

Show
Ignore:
Timestamp:
06/08/04 22:52:40 (5 years ago)
Author:
morris
Message:

raise error on 510/511

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/WCConnection.m

    r1356 r1357  
    1 /* $Id: WCConnection.m,v 1.18 2004/06/01 20:52:11 morris Exp $ */ 
     1/* $Id: WCConnection.m,v 1.19 2004/06/08 20:52:40 morris Exp $ */ 
    22 
    33/* 
     
    261261 
    262262 
    263 - (BOOL)connectionShouldHandleError:(int)error { 
    264         switch(error) { 
    265                 case 510: 
    266                 case 511: 
    267                         [[NSNotificationCenter defaultCenter] 
    268                                 postNotificationName:WCConnectionShouldTerminate 
    269                                 object:self]; 
    270                          
    271                         return YES; 
    272                         break; 
    273         } 
    274          
    275         return NO; 
    276 } 
    277          
    278  
    279  
    280263- (void)connectionGotServerError:(NSNotification *)notification { 
    281264        WCConnection    *connection; 
     
    319302                        [[self error] setError:WCServerErrorLoginFailed]; 
    320303                        [[self error] raiseErrorInWindow:[WCSharedMain shownWindow]]; 
     304                         
     305                        [[NSNotificationCenter defaultCenter] 
     306                                postNotificationName:WCConnectionShouldTerminate 
     307                                object:self];            
    321308                        break; 
    322309                         
     
    324311                        [[self error] setError:WCServerErrorBanned]; 
    325312                        [[self error] raiseErrorInWindow:[WCSharedMain shownWindow]]; 
     313                         
     314                        [[NSNotificationCenter defaultCenter] 
     315                                postNotificationName:WCConnectionShouldTerminate 
     316                                object:self]; 
    326317                        break; 
    327318