Ignore:
Timestamp:
Jan 6, 2016, 5:45:52 PM (8 years ago)
Author:
stuerze
Message:

some code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/upload/bncuploadcaster.cpp

    r5070 r7661  
    1111 * Created:    29-Mar-2011
    1212 *
    13  * Changes:   
     13 * Changes:
    1414 *
    1515 * -----------------------------------------------------------------------*/
    1616
    1717#include <math.h>
    18 #include "bncuploadcaster.h" 
     18#include "bncuploadcaster.h"
    1919#include "bncversion.h"
    2020#include "bnccore.h"
     
    2727bncUploadCaster::bncUploadCaster(const QString& mountpoint,
    2828                                 const QString& outHost, int outPort,
    29                                  const QString& password, int iRow, 
     29                                 const QString& password, int iRow,
    3030                                 int rate) {
    3131  _mountpoint    = mountpoint;
     
    4545  _isToBeDeleted = false;
    4646
    47   connect(this, SIGNAL(newMessage(QByteArray,bool)), 
     47  connect(this, SIGNAL(newMessage(QByteArray,bool)),
    4848          BNC_CORE, SLOT(slotMessage(const QByteArray,bool)));
    4949
    5050  if (BNC_CORE->_uploadTableItems.find(_iRow) != BNC_CORE->_uploadTableItems.end()){
    51     connect(this, SIGNAL(newBytes(QByteArray,double)), 
    52             BNC_CORE->_uploadTableItems.value(iRow), 
     51    connect(this, SIGNAL(newBytes(QByteArray,double)),
     52            BNC_CORE->_uploadTableItems.value(iRow),
    5353            SLOT(slotNewBytes(const QByteArray,double)));
    5454  }
     
    6969  if (isRunning()) {
    7070    wait();
     71  }
     72  if (_outSocket) {
     73    delete _outSocket;
    7174  }
    7275}
     
    111114  }
    112115
    113   if (_outSocket != 0 && 
     116  if (_outSocket != 0 &&
    114117      _outSocket->state() == QAbstractSocket::ConnectedState) {
    115118    return;
     
    141144  }
    142145
    143   QByteArray msg = "SOURCE " + _password.toAscii() + " /" + 
     146  QByteArray msg = "SOURCE " + _password.toAscii() + " /" +
    144147                   _mountpoint.toAscii() + "\r\n" +
    145148                   "Source-Agent: NTRIP BNC/" BNCVERSION "\r\n\r\n";
Note: See TracChangeset for help on using the changeset viewer.