Commit 2b9ca61e authored by shenjunlin's avatar shenjunlin

fix bug

parent 15cea085
......@@ -100,12 +100,10 @@ public class WebDriverPool {
*/
public WebDriver get() throws InterruptedException {
checkRunning();
logger.info("11现在的driver{}", webDriverList.size());
WebDriver poll = innerQueue.poll();
if (poll != null) {
return poll;
}
logger.info("22现在的driver{}", webDriverList.size());
if (webDriverList.size() < capacity) {
synchronized (webDriverList) {
if (webDriverList.size() < capacity) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment