summaryrefslogtreecommitdiff
path: root/lib/git/async/thread.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-06-08 16:47:48 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-06-08 16:47:48 +0200
commit619c11787742ce00a0ee8f841cec075897873c79 (patch)
tree7cfcc718c049b26abedf280bebb6c65a6d6f619c /lib/git/async/thread.py
parent53152a824f5186452504f0b68306d10ebebee416 (diff)
downloadgitpython-619c11787742ce00a0ee8f841cec075897873c79.tar.gz
Its getting better already - intermediate commit before further chaning the task class
Diffstat (limited to 'lib/git/async/thread.py')
-rw-r--r--lib/git/async/thread.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/git/async/thread.py b/lib/git/async/thread.py
index 4240a664..5faad4f8 100644
--- a/lib/git/async/thread.py
+++ b/lib/git/async/thread.py
@@ -124,6 +124,7 @@ class WorkerThread(TerminatableThread):
def run(self):
"""Process input tasks until we receive the quit signal"""
+ gettask = self.inq.get
while True:
self._current_routine = None
if self._should_terminate():
@@ -132,7 +133,7 @@ class WorkerThread(TerminatableThread):
# don't wait too long, instead check for the termination request more often
try:
- tasktuple = self.inq.get(True, 1)
+ tasktuple = gettask(True, 0.25)
except Queue.Empty:
continue
# END get task with timeout