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

v1.3
xueli.xue 9 years ago
parent db08a3dc64
commit 4f3f5e849c

@ -206,7 +206,7 @@ public class HandlerRepository {
public void run() { public void run() {
while(true){ while(true){
try { try {
HashMap<String, String> item = callBackQueue.poll(); HashMap<String, String> item = callBackQueue.take();
if (item != null) { if (item != null) {
RemoteCallBack callback = null; RemoteCallBack callback = null;
try { try {

Loading…
Cancel
Save