From e66d5fa2f8b4bb0957285ccba0100e040afdcb59 Mon Sep 17 00:00:00 2001 From: Payman Delshad Date: Thu, 24 Oct 2013 15:14:55 +0200 Subject: [PATCH] (Android) Fix for crash when there's no connected devices. --- lib/devices/android/adb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/devices/android/adb.js b/lib/devices/android/adb.js index 72ea2ee97..5e13357a2 100644 --- a/lib/devices/android/adb.js +++ b/lib/devices/android/adb.js @@ -420,7 +420,7 @@ ADB.prototype.getDevicesWithRetry = function(timeoutMs, cb) { } else { cb(null, devices); } - }); + }.bind(this)); }.bind(this); getDevices(); };