Commit c1885b0d authored by Steve Borho's avatar Steve Borho
Browse files

thgrepo: check before removing repository from cache

parent 7a7d586c11e0
......@@ -82,7 +82,8 @@ class ThgRepoWrapper(QObject):
dbgoutput('Repository destroyed', self.repo.root)
self.repositoryDestroyed.emit()
self.killTimer(self._timerevent)
del _repocache[self.repo.root]
if self.repo.root in _repocache:
del _repocache[self.repo.root]
elif self.busycount == 0:
self.pollStatus()
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment