Changeset 1502

Show
Ignore:
Timestamp:
08/16/04 19:39:14 (4 years ago)
Author:
morris
Message:

add -terminated

release console and error manually

Files:

Legend:

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

    r1467 r1502  
    1 /* $Id: WCConnection.h,v 1.19 2004/08/10 17:57:23 morris Exp $ */ 
     1/* $Id: WCConnection.h,v 1.20 2004/08/16 17:39:14 morris Exp $ */ 
    22 
    33/* 
     
    6666        WCConnectionType                                                _type; 
    6767        unsigned int                                                    _uid; 
    68         BOOL                                                                    _connected, _cancelled, _received
     68        BOOL                                                                    _connected, _cancelled, _received, _terminated
    6969} 
    7070 
     
    177177- (WCAccount *)                                                         account; 
    178178- (BOOL)                                                                        connected; 
     179- (BOOL)                                                                        terminated; 
    179180- (unsigned int)                                                        uid; 
    180181- (double)                                                                      protocol; 
  • WiredClient/trunk/WCConnection.m

    r1471 r1502  
    1 /* $Id: WCConnection.m,v 1.29 2004/08/11 18:57:49 morris Exp $ */ 
     1/* $Id: WCConnection.m,v 1.30 2004/08/16 17:39:14 morris Exp $ */ 
    22 
    33/* 
     
    164164                         object:NULL]; 
    165165         
    166         // --- we need these in the threads 
    167         [_console retain]; 
    168          
    169166        // --- start connection 
    170167        [NSThread detachNewThreadSelector:@selector(serverThread:) toTarget:self withObject:NULL]; 
     
    216213        [_tracker release]; 
    217214         
     215        [_error release]; 
    218216        [_console release]; 
    219217         
     
    262260        [_timer invalidate]; 
    263261         
     262        _terminated = YES; 
     263 
    264264        [self release]; 
    265265} 
     
    277277        } 
    278278         
     279        _terminated = YES; 
    279280        _cancelled = YES; 
    280281} 
     
    12061207 
    12071208 
     1209- (BOOL)terminated { 
     1210        return _terminated; 
     1211} 
     1212 
     1213 
     1214 
    12081215- (unsigned int)uid { 
    12091216        return _uid;