Merge pull request #2395 from rgonalo/fixdump

Fix Appium crash when fails getting source page in Android
This commit is contained in:
Jonathan Lipps
2014-04-24 11:36:41 -07:00

View File

@@ -377,7 +377,8 @@ androidController.getPageSource = function (cb) {
],
// Top level cb
function () {
function (err) {
if (err) return cb(err);
var xml = fs.readFileSync(xmlFile, 'utf8');
fs.unlinkSync(xmlFile);
try {