~ubuntu-branches/ubuntu/lucid/quassel/lucid-security

« back to all changes in this revision

Viewing changes to src/client/coreconnection.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-03-11 13:44:02 UTC
  • mfrom: (1.1.35 upstream)
  • Revision ID: james.westby@ubuntu.com-20100311134402-8516mqyyzlkgeaz4
Tags: 0.6~rc1+git100311-0ubuntu1
* New bugfix snapshot
  - "Metric ton of bug fixes"

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
  switch(status) {
154
154
  case Solid::Networking::Unknown:
155
155
  case Solid::Networking::Connected:
156
 
    qDebug() << "Solid: Network status changed to connected or unknown";
 
156
    //qDebug() << "Solid: Network status changed to connected or unknown";
157
157
    if(state() == Disconnected) {
158
158
      if(_wantReconnect && s.autoReconnect()) {
159
159
        reconnectToCore();
160
160
      }
161
161
    }
162
162
    break;
 
163
  case Solid::Networking::Disconnecting:
163
164
  case Solid::Networking::Unconnected:
164
 
    qDebug() << "Solid: Disconnected";
165
 
    if(!isLocalConnection())
 
165
    if(state() != Disconnected && !isLocalConnection())
166
166
      disconnectFromCore(tr("Network is down"), true);
167
167
    break;
168
168
  default:
255
255
}
256
256
 
257
257
void CoreConnection::coreSocketDisconnected() {
258
 
  qDebug() << Q_FUNC_INFO;
 
258
  // qDebug() << Q_FUNC_INFO;
259
259
  resetConnection(true);
260
260
  // FIXME handle disconnects gracefully
261
261
}