Fix nasty bug that made the client sometimes crash at sync.
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 21 Feb 2008 01:07:45 +0000 (01:07 +0000)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 21 Feb 2008 01:07:45 +0000 (01:07 +0000)
src/client/clientsyncer.cpp
src/common/signalproxy.cpp

index 601bff0..dfadf32 100644 (file)
@@ -72,23 +72,12 @@ void ClientSyncer::coreHasData() {
       emit loginSuccess();
     } else if(msg["MsgType"] == "SessionInit") {
       sessionStateReceived(msg["SessionState"].toMap());
+      break; // this is definitively the last message we process here!
     } else {
       emit connectionError(tr("<b>Invalid data received from core!</b><br>Disconnecting."));
       disconnectFromCore();
       return;
     }
-    /*
-    if (!msg["StartWizard"].toBool()) {
-    recvCoreState(msg["Reply"]);
-  } else {
-    qWarning("Core not configured!");
-    qDebug() << "Available storage providers: " << msg["StorageProviders"].toStringList();
-    emit showConfigWizard(msg);
-  }
-    blockSize = 0;
-    return;
-  }
-    */
   }
   if(blockSize > 0) {
     emit recvPartialItem(socket->bytesAvailable(), blockSize);
index 968bf42..e934a05 100644 (file)
@@ -317,7 +317,7 @@ void SignalProxy::removePeer(QIODevice* iodev) {
     qWarning() << "SignalProxy: unknown QIODevice" << iodev;
     return;
   }
-     
+
   // take a last gasp
   while(true) {
     QVariant var;