platform/android/Rhodes/src/com/rhomobile/rhodes/socket/SSLImpl.java in rhodes-2.4.1 vs platform/android/Rhodes/src/com/rhomobile/rhodes/socket/SSLImpl.java in rhodes-3.0.0.beta.1
- old
+ new
@@ -1,7 +1,8 @@
package com.rhomobile.rhodes.socket;
+import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
@@ -51,11 +52,11 @@
}
};
private static void reportFail(String name, Exception e) {
- Logger.E(TAG, "Call of \"" + name + "\" failed: " + e.getMessage());
+ Logger.E(TAG, "Call of \"" + name + "\" failed: " + e.getClass().getSimpleName() + ": " + e.getMessage());
}
private static SSLSocketFactory getFactory(boolean verify) throws NoSuchAlgorithmException, KeyManagementException {
if (verify)
return (SSLSocketFactory)SSLSocketFactory.getDefault();
@@ -90,9 +91,12 @@
public void shutdown() {
try {
if (sock != null)
sock.close();
+ }
+ catch (IOException e) {
+ Logger.I(TAG, "shutdown fails: IOException: " + e.getMessage());
}
catch (Exception e) {
reportFail("shutdown", e);
}
}