cptjackwu commented on issue #1191:
URL: https://github.com/apache/plc4x/issues/1191#issuecomment-1802086524

   I have changed workLog.remove(); to workLog.poll(), and then judged it and 
solved the problem。
   
   
   private void processWorklog() {
   while (runningRequests.size() < getNumberOfConcurrentRequests() && 
!workLog.isEmpty()) {
   RequestTransaction next = workLog.poll();
   if(next!-null){
   this.runningRequests.add(next);
   Future<?> completionFuture = executor.submit(next.operation);
   next.setCompletionFuture(completionFuture);
   }
   }
   }
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@plc4x.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to