Ignore:
Timestamp:
11/17/03 13:40:14 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/tcpip/MTcpIpIO.cc

    r2514 r2517  
    4040MTcpIpIO::~MTcpIpIO()
    4141{
    42     cout << "Delete TxSocket..." << flush;
     42    //
     43    // Make sure, that no loop waiting for connection
     44    // is running anymore!
     45    //
     46    Stop();
     47
     48    //
     49    // Now delete all TCP/IP objects
     50    //
     51    cout << "Delete TxSocket " << fTxSocket << "..." << flush;
    4352    delete fTxSocket;
    4453    cout << "Done." << endl;
    4554    if (fServSock)
    4655    {
    47         cout << "Delete ServSock..." << flush;
     56        cout << "Delete ServSock " << fServSock << "..." << flush;
    4857        delete fServSock;
    4958        cout << "Done." << endl;
     
    5160    if (fRxSocket)
    5261    {
    53         cout << "Delete RxSocket..." << flush;
     62        cout << "Delete RxSocket " << fRxSocket << "..." << flush;
    5463        delete fRxSocket;
    5564        cout << "Done." << endl;
     
    123132            if (fRxSocket==0)
    124133                cout << "Error: TServerSock::Accept" << endl;
    125             usleep(1);
    126         }
     134            usleep(10);
     135        }
     136
     137        // Can happen in case of HasStopFlag()
     138        if (fRxSocket==(void*)-1)
     139            fRxSocket=NULL;
    127140
    128141        if (fRxSocket==NULL)
Note: See TracChangeset for help on using the changeset viewer.