/soc/2012/michael/android: 0e593ea4d479: Made ssl connect functi...

Michael Zangl michael at soc.pidgin.im
Fri Aug 3 04:43:18 EDT 2012


Changeset: 0e593ea4d4798a02cb4704ab71bf4592144b95da
Author:	 Michael Zangl <michael at soc.pidgin.im>
Date:	 2012-08-03 10:42 +0200
Branch:	 soc.2012.android
URL: http://hg.pidgin.im/soc/2012/michael/android/rev/0e593ea4d479

Description:

Made ssl connect function return the connection status.

diffstat:

 android/workspace/im.pidgin.libpurple/src/im/pidgin/libpurple/core/ssl/SslConnection.java |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff --git a/android/workspace/im.pidgin.libpurple/src/im/pidgin/libpurple/core/ssl/SslConnection.java b/android/workspace/im.pidgin.libpurple/src/im/pidgin/libpurple/core/ssl/SslConnection.java
--- a/android/workspace/im.pidgin.libpurple/src/im/pidgin/libpurple/core/ssl/SslConnection.java
+++ b/android/workspace/im.pidgin.libpurple/src/im/pidgin/libpurple/core/ssl/SslConnection.java
@@ -44,7 +44,8 @@ public final class SslConnection extends
 		try {
 			sslsocket = sslsocketfactory.createSocket(socket, getHost_native(),
 					getPort_native(), false);
-			return true;
+			boolean connected = sslsocket.isConnected();
+			return connected;
 		} catch (IOException e) {
 			// TODO Auto-generated catch block
 			e.printStackTrace();



More information about the Commits mailing list