1
0
mirror of https://github.com/moparisthebest/SSLDroid synced 2024-11-15 21:45:06 -05:00

TcpProxyServerThread: add missing check on socket existence

This commit is contained in:
Balint Kovacs 2014-12-19 11:15:25 +01:00
parent e04d51d891
commit dd0e9ac280

View File

@ -124,7 +124,10 @@ public class TcpProxyServerThread extends Thread {
}
catch (Exception e) {
Log.d("SSLDroid", tunnelName+"/"+sessionid+": SSL failure: " + e.toString());
sc.close();
if (sc != null)
{
sc.close();
}
return;
}