Skip to content

Commit 5260b42

Browse files
authored
Update DeviceAllocationManager.java
1 parent d6d3a92 commit 5260b42

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/com/appium/manager/DeviceAllocationManager.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,15 @@ public List<AppiumDevice> getDevices() {
4848

4949
public synchronized AppiumDevice getNextAvailableDevice() {
5050
int i = 0;
51+
System.out.println("inside getNextAvailableDevice");
52+
5153
for (AppiumDevice device : allDevices) {
5254
Thread t = Thread.currentThread();
5355
t.setName("Thread_" + i);
5456
i++;
55-
if (device.isAvailable()) {
57+
boolean flag =device.isAvailable();
58+
System.out.println("isDevice available : "+flag);
59+
if (flag) {
5660
device.blockDevice();
5761
return device;
5862
}

0 commit comments

Comments
 (0)