Skip to content
Permalink
Browse files

plugin installer: destroy network replies (fixes #8233)

  • Loading branch information
jef-n committed Jul 7, 2013
1 parent be65f73 commit a39b5ab2fad15910a9abec7f9aa44b016928d86e
@@ -475,7 +475,7 @@ def xmlDownloaded(self):
if not self.fetchingInProgress():
self.checkingDone.emit()

del reply
reply.deleteLater()


# ----------------------------------------- #
@@ -89,13 +89,13 @@ def requestFinished(self):
if reply.error() == QNetworkReply.OperationCanceledError:
self.mResult += "<br/><br/>" + QCoreApplication.translate("QgsPluginInstaller", "If you haven't cancelled the download manually, it might be caused by a timeout. In this case consider increasing the connection timeout value in QGIS options.")
self.reject()
del reply
reply.deleteLater()
return
self.file.open(QFile.WriteOnly)
self.file.write( reply.readAll() )
self.file.close()
self.stateChanged(0)
del reply
reply.deleteLater()
pluginDir = QFileInfo(QgsApplication.qgisUserDbFilePath()).path() + "/python/plugins"
tmpPath = self.file.fileName()
# make sure that the parent directory exists

0 comments on commit a39b5ab

Please sign in to comment.
You can’t perform that action at this time.