Changeset 1357
- Timestamp:
- 06/08/04 22:52:40 (5 years ago)
- Files:
-
- WiredClient/trunk/WCConnection.m (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/WCConnection.m
r1356 r1357 1 /* $Id: WCConnection.m,v 1.1 8 2004/06/01 20:52:11morris Exp $ */1 /* $Id: WCConnection.m,v 1.19 2004/06/08 20:52:40 morris Exp $ */ 2 2 3 3 /* … … 261 261 262 262 263 - (BOOL)connectionShouldHandleError:(int)error {264 switch(error) {265 case 510:266 case 511:267 [[NSNotificationCenter defaultCenter]268 postNotificationName:WCConnectionShouldTerminate269 object:self];270 271 return YES;272 break;273 }274 275 return NO;276 }277 278 279 280 263 - (void)connectionGotServerError:(NSNotification *)notification { 281 264 WCConnection *connection; … … 319 302 [[self error] setError:WCServerErrorLoginFailed]; 320 303 [[self error] raiseErrorInWindow:[WCSharedMain shownWindow]]; 304 305 [[NSNotificationCenter defaultCenter] 306 postNotificationName:WCConnectionShouldTerminate 307 object:self]; 321 308 break; 322 309 … … 324 311 [[self error] setError:WCServerErrorBanned]; 325 312 [[self error] raiseErrorInWindow:[WCSharedMain shownWindow]]; 313 314 [[NSNotificationCenter defaultCenter] 315 postNotificationName:WCConnectionShouldTerminate 316 object:self]; 326 317 break; 327 318
