diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-08 16:47:48 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-08 16:47:48 +0200 |
commit | 619c11787742ce00a0ee8f841cec075897873c79 (patch) | |
tree | 7cfcc718c049b26abedf280bebb6c65a6d6f619c /lib/git/async/thread.py | |
parent | 53152a824f5186452504f0b68306d10ebebee416 (diff) | |
download | gitpython-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.py | 3 |
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 |