Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b450071

Browse files
committedMar 9, 2019
alternative
1 parent 068aef8 commit b450071

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎python/pyplugin_installer/installer_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def requestFetching(self, key, url=None, redirectionCounter=0):
338338
self.mRepositories[key]["xmlData"].setProperty('reposName', key)
339339
self.mRepositories[key]["xmlData"].setProperty('redirectionCounter', redirectionCounter)
340340
self.mRepositories[key]["xmlData"].downloadProgress.connect(self.mRepositories[key]["Relay"].dataReadProgress)
341-
self.mRepositories[key]["xmlData"].finished.connect(self.xmlDownloaded)
341+
self.mRepositories[key]["xmlDataFinished"] = self.mRepositories[key]["xmlData"].finished.connect(self.xmlDownloaded)
342342

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.