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
1 changed files with 4 additions and 1 deletions

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;
}