Ignore:
Timestamp:
May 3, 2007 7:56:21 PM (18 years ago)
Author:
bennylp
Message:

Misc Symbian fixes, looks good

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/sock_symbian.cpp

    r1246 r1248  
    6767CPjSocket::~CPjSocket() 
    6868{ 
     69    DestroyReader(); 
     70    sock_.Close(); 
     71} 
     72 
     73 
     74// Create socket reader. 
     75CPjSocketReader *CPjSocket::CreateReader(unsigned max_len) 
     76{ 
     77    pj_assert(sockReader_ == NULL); 
     78    return sockReader_ = CPjSocketReader::NewL(*this, max_len); 
     79} 
     80 
     81// Delete socket reader when it's not wanted. 
     82void CPjSocket::DestroyReader()  
     83{ 
    6984    if (sockReader_) { 
    7085        if (sockReader_->IsActive()) 
     
    7388        sockReader_ = NULL; 
    7489    } 
    75     sock_.Close(); 
    76 } 
    77  
    78  
    79 // Create socket reader. 
    80 CPjSocketReader *CPjSocket::CreateReader(unsigned max_len) 
    81 { 
    82     pj_assert(sockReader_ == NULL); 
    83     return sockReader_ = CPjSocketReader::NewL(*this, max_len); 
    8490} 
    8591 
     
    164170    void (*old_cb)(void *key) = readCb_; 
    165171    void *old_key = key_; 
    166     bool is_active = IsActive(); 
    167172 
    168173    readCb_ = NULL; 
Note: See TracChangeset for help on using the changeset viewer.