CB-8431 File Transfer tests crash on Android Lolipop

github: close #79
This commit is contained in:
Vito Rifino
2015-10-17 11:34:32 +03:00
committed by daserge
parent 869eea41ec
commit ea271933e9

View File

@@ -1011,7 +1011,11 @@ public class FileTransfer extends CordovaPlugin {
context.sendPluginResult(new PluginResult(PluginResult.Status.ERROR, error));
context.aborted = true;
if (context.connection != null) {
context.connection.disconnect();
try {
context.connection.disconnect();
} catch (Exception e) {
Log.e(LOG_TAG, "CB-8431 Catch workaround for fatal exception", e);
}
}
}
}