Skip to content

Commit

Permalink
#360: fixed isConnected verification for the wireless device
Browse files Browse the repository at this point in the history
  • Loading branch information
vdelendik committed Mar 15, 2024
1 parent 123f2c9 commit 6fb1559
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions device_connect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,13 @@ if [ ! -z "$ANDROID_DEVICE" ]; then
sleep ${ADB_POLLING_SEC}
index+=1
done
fi

if [[ $isConnected -eq 0 ]]; then
echo "Device ${ANDROID_DEVICE} is not connected!"
exit 1
if [[ $isConnected -eq 0 ]]; then
echo "Device ${ANDROID_DEVICE} is not connected!"
exit 1
fi
fi


isAvailable=0
declare -i index=0
# as default ADB_POLLING_SEC is 5s then we wait for authorizing ~50 sec only
Expand Down

0 comments on commit 6fb1559

Please sign in to comment.