Avoid wait until timer gets to zero ...

... to avoid delay if we are adding a request for a new host.
This commit is contained in:
Sophist
2013-11-30 15:26:39 +00:00
parent 5ede83cefb
commit 680b6ff510

View File

@@ -319,7 +319,7 @@ class XmlWebService(QtCore.QObject):
queues[key].append(func)
self.num_pending_web_requests += 1
self.tagger.tagger_stats_changed.emit()
if not self._timer.isActive():
if len(queues[key]) == 1:
self._timer.start(0)
return (key, func, priority)