mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2026-02-02 00:00:05 +08:00
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user