Commit 50bccd26 by 刘航

[chg]websocket循环线程中增加sleep 1毫秒,避免cpu占用过高

1 parent b0d35808
......@@ -162,6 +162,7 @@ class Server ():
self.subtask_id = da['subtask_id']
except Exception as e:
print e
time.sleep(0.001)
def send_data(self, str_data, address):
#data = eval(data)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!