Changeset 630 in ntrip for trunk/BNC/bnccaster.cpp


Ignore:
Timestamp:
Dec 17, 2007, 9:48:34 AM (17 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnccaster.cpp

    r628 r630  
    107107  delete _outFile;
    108108  delete _server;
    109   delete _sockets;
     109  if (_sockets) {
     110    QListIterator<QTcpSocket*> is(*_sockets);
     111    while (is.hasNext()) {
     112      delete is.next();
     113    }
     114    delete _sockets;
     115  }
    110116  if (_epochs) {
    111117    QListIterator<p_obs> it(_epochs->values());
     
    170176void bncCaster::slotNewConnection() {
    171177  _sockets->push_back( _server->nextPendingConnection() );
     178  emit( newMessage(QString("New Connection # %1")
     179                   .arg(_sockets->size()).toAscii()) );
    172180}
    173181
Note: See TracChangeset for help on using the changeset viewer.