Changed search to retry automatically couple of times before failing.
[jenirok] / src / common / mobil1881.cpp
index 69327b0..a51d293 100644 (file)
@@ -109,7 +109,9 @@ void Mobil1881::addNumbers(SearchData* searchData,
     if(data.isEmpty())
     {
         qDebug() << "Server returned no data";
-        qDebug() << "Headers: " << http_.lastResponse().toString();
+        setError(CONNECTION_FAILURE, "Server returned no data");
+        emitRequestFinished(searchData, true, index);
+        return;
     }
 
     if(data.indexOf("<b>Last ned vCard</b>") > 0)