1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-24 00:33:48 +02:00

fix problem with connecting to ssl server that randomly occurs returning "null" for connect status.

This commit is contained in:
David McKnight 2006-10-05 18:27:38 +00:00
parent cdbe580c99
commit c458020bdc

View file

@ -656,6 +656,7 @@ public class ClientConnection implements IDataStoreConstants
reader = new BufferedReader(new InputStreamReader(_launchSocket.getInputStream(), DE.ENCODING_UTF_8));
String status = null;
try
{
status = reader.readLine();
@ -670,6 +671,11 @@ public class ClientConnection implements IDataStoreConstants
{
result = new ConnectionStatus(false, status);
}
else if (status == null)
{
Exception e = new Exception("no status returned");
result = new ConnectionStatus(false, e);
}
else
{
result = new ConnectionStatus(true);