提交 4f3f5e84 编写于 作者: X xueli.xue

任务回调队列,poll改为take;修复一处可能导致cpu占满的问题

上级 db08a3dc
......@@ -206,7 +206,7 @@ public class HandlerRepository {
public void run() {
while(true){
try {
HashMap<String, String> item = callBackQueue.poll();
HashMap<String, String> item = callBackQueue.take();
if (item != null) {
RemoteCallBack callback = null;
try {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册