提交 7afa1965 编写于 作者: P Pengzhou Tang

Patch for 512045ef, class Worker should also be compatible with class Operation

上级 63dd5a6c
......@@ -208,7 +208,7 @@ class Worker(Thread):
# misleading exception raised during interpreter shutdown
return
if self.cmd is not None and isinstance(self.cmd, Command) and not self.shouldStop:
if self.cmd is not None and not self.shouldStop:
self.logger.debug("[%s] got cmd: %s" % (self.name,self.cmd.cmdStr))
self.cmd.run()
self.logger.debug("[%s] finished cmd: %s" % (self.name, self.cmd))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册