Browse Source

限制在客户端没有发送基本信息前不派发任务

jxing 6 years ago
parent
commit
b8259a38bb
1 changed files with 2 additions and 0 deletions
  1. 2 0
      scheduler/src/main/java/cn/sagacloud/server/DispatchTask.java

+ 2 - 0
scheduler/src/main/java/cn/sagacloud/server/DispatchTask.java

@@ -174,6 +174,8 @@ public class DispatchTask implements Runnable {
             if(!wrapper.isLastRefuseTimeOutPassed()){
                 wrapper = null;
             }
+            if(wrapper.getClientInfo() == null || wrapper.getClientInfo().length() == 0)
+                wrapper = null;
             if(clientCount == 0)
                 return null;
             clientIndex = (clientIndex + 1) % clientCount;