Skip to content
Permalink
Browse files

alternative

  • Loading branch information
nirvn authored and nyalldawson committed Mar 9, 2019
1 parent 376fbf5 commit 6bccc8ea6d417f0f387ceba57f67ff5334f8eef2
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/pyplugin_installer/installer_data.py
@@ -338,7 +338,7 @@ def requestFetching(self, key, url=None, redirectionCounter=0):
self.mRepositories[key]["xmlData"].setProperty('reposName', key)
self.mRepositories[key]["xmlData"].setProperty('redirectionCounter', redirectionCounter)
self.mRepositories[key]["xmlData"].downloadProgress.connect(self.mRepositories[key]["Relay"].dataReadProgress)
self.mRepositories[key]["xmlData"].finished.connect(self.xmlDownloaded)
self.mRepositories[key]["xmlDataFinished"] = self.mRepositories[key]["xmlData"].finished.connect(self.xmlDownloaded)

# ----------------------------------------- #
def fetchingInProgress(self):
@@ -352,8 +352,8 @@ def fetchingInProgress(self):
def killConnection(self, key):
""" kill the fetching on demand """
if self.mRepositories[key]["state"] == 1 and self.mRepositories[key]["xmlData"] and self.mRepositories[key]["xmlData"].isRunning():
self.mRepositories[key]["xmlData"].finished.disconnect(self.mRepositories[key]["xmlDataFinished"])
self.mRepositories[key]["xmlData"].abort()
self.mRepositories[key]["xmlData"].finished.disconnect()

# ----------------------------------------- #
def xmlDownloaded(self):

0 comments on commit 6bccc8e

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