Skip to content

Commit

Permalink
[Plugin Manager] installer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
borysiasty committed Jun 11, 2013
1 parent f8cafe8 commit a602112
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/pyplugin_installer/installer_data.py
Expand Up @@ -383,7 +383,7 @@ def load(self):
self.mRepositories[key]["QPNAM"] = QPNetworkAccessManager()

self.mRepositories[key]["Relay"] = Relay(key)
self.mRepositories[key]["xmlData"] = QBuffer()
self.mRepositories[key]["xmlData"] = None
self.mRepositories[key]["state"] = 0
self.mRepositories[key]["error"] = ""
settings.endGroup()
Expand Down Expand Up @@ -417,7 +417,7 @@ def fetchingInProgress(self):
# ----------------------------------------- #
def killConnection(self, key):
""" kill the fetching on demand """
if self.mRepositories[key]["xmlData"].isRunning():
if self.mRepositories[key]["xmlData"] and self.mRepositories[key]["xmlData"].isRunning():
self.mRepositories[key]["QPNAM"].finished.disconnect()
self.mRepositories[key]["xmlData"].abort()

Expand Down

0 comments on commit a602112

Please sign in to comment.