summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ridljar/com/sun/star/lib/connections/socket/socketConnector.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/ridljar/com/sun/star/lib/connections/socket/socketConnector.java b/ridljar/com/sun/star/lib/connections/socket/socketConnector.java
index 484ffd135e92..c9a15d1f5d4a 100644
--- a/ridljar/com/sun/star/lib/connections/socket/socketConnector.java
+++ b/ridljar/com/sun/star/lib/connections/socket/socketConnector.java
@@ -158,11 +158,9 @@ public final class socketConnector implements XConnector {
con = new SocketConnection(connectionDescription, socket);
} catch (IOException e) {
- if (socket != null) {
- try {
- socket.close();
- } catch(IOException ioException) {
- }
+ try {
+ socket.close();
+ } catch(IOException ioException) {
}
throw new NoConnectException(e);
}