[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [tellico/2.3] src/fetch: be sure to stop fetcher if idbndb doesn't return valid XML
From: Robby Stephenson <robby () periapsis ! org>
Date: 2015-05-31 23:51:56
Message-ID: E1YzD1I-00013I-Uh () scm ! kde ! org
[Download RAW message or body]
Git commit 920d84ec9334cfdee635da9b9030e350e1a24a78 by Robby Stephenson.
Committed on 31/05/2015 at 13:46.
Pushed by rstephenson into branch '2.3'.
be sure to stop fetcher if idbndb doesn't return valid XML
M +2 -1 src/fetch/isbndbfetcher.cpp
http://commits.kde.org/tellico/920d84ec9334cfdee635da9b9030e350e1a24a78
diff --git a/src/fetch/isbndbfetcher.cpp b/src/fetch/isbndbfetcher.cpp
index 3c95860..e162903 100644
--- a/src/fetch/isbndbfetcher.cpp
+++ b/src/fetch/isbndbfetcher.cpp
@@ -1,4 +1,4 @@
-/*************************************************************************=
**
+2/************************************************************************=
***
Copyright (C) 2006-2009 Robby Stephenson <robby@periapsis.org>
*************************************************************************=
**/
=
@@ -195,6 +195,7 @@ void ISBNdbFetcher::slotComplete(KJob*) {
QDomDocument dom;
if(!dom.setContent(data, false)) {
myWarning() << "server did not return valid XML.";
+ stop();
return;
}
=
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic