Applying solution I don't understand

This commit is contained in:
Biryuzovye Kleshni 2018-08-02 15:00:23 +00:00
parent 192b083d58
commit 7ad1725235
2 changed files with 3 additions and 4 deletions

View File

@ -271,15 +271,14 @@ def setBestSolver():
setBestSolver()
class singleWorker(threading.Thread, helper_threading.StoppableThread):
name = "singleWorker"
def __init__(self):
super(self.__class__, self).__init__()
super(self.__class__, self).__init__(name = "singleWorker")
self.initStop()
def stopThread(self):
queues.workerQueue.put(("stopThread", "data"))
workProver.commandsQueue.put(("shutdown", ))
super(self.__class__, self).stopThread()

View File

@ -119,7 +119,7 @@ class WorkProver(threading.Thread):
self.solverName = name
self.solver = self.availableSolvers[name]
self.solver.setConfiguration(configuration)
except GPUSolverError:
except gpusolver.GPUSolverError:
self.solverName = None
self.solver = None