mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-22 00:14:55 -05:00
[Plugin Installer] Fixes #8244 (crash on closing http request)
This commit is contained in:
parent
cb0d52843e
commit
682a89c957
@ -386,7 +386,7 @@ class Repositories(QObject):
|
||||
# ----------------------------------------- #
|
||||
def killConnection(self, key):
|
||||
""" kill the fetching on demand """
|
||||
if self.mRepositories[key]["xmlData"] and self.mRepositories[key]["xmlData"].isRunning():
|
||||
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]["xmlData"].abort()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user