future.isResolved is a function

This commit is contained in:
Justin SB
2014-10-21 15:11:37 -07:00
parent b45bc06fff
commit f59aa4c0f3

View File

@@ -1136,7 +1136,7 @@ var execCordovaOnPlatform = function (localPath, platformName, options) {
var future = new Future;
execFileAsyncOrThrow(localAdb, ['logcat', '-c'], future.resolver());
setTimeout(function () {
if (! future.isResolved) {
if (! future.isResolved()) {
verboseLog('adb logcat -c timed out');
future.throw(new Error("clearing logs of Android device timed out: adb logcat -c"));
}