python3: Fixed name conflict.
authorFredrik Tolf <fredrik@dolda2000.com>
Mon, 4 Apr 2016 00:49:03 +0000 (02:49 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Mon, 4 Apr 2016 00:49:03 +0000 (02:49 +0200)
python3/ashd/serve.py

index 7811f66..e156cd6 100644 (file)
@@ -224,7 +224,7 @@ class threadpool(handler):
         return ret
 
     def handle(self, req):
-        start = False
+        spawn = False
         with self.qlk:
             if self.timeout is not None:
                 now = start = time.time()
@@ -239,8 +239,8 @@ class threadpool(handler):
             self.queue.append(req)
             self.qcond.notify()
             if len(self.waiting) < 1:
-                start = True
-        if start:
+                spawn = True
+        if spawn:
             with self.clk:
                 if len(self.current) < self.max:
                     th = reqthread(target=self.run)