Skip to content

Commit 0dc0a6f

Browse files
author
Steve Powell
committed
Make SocketFrameHandler.close() always attempt to close the socket.
1 parent 5e3f0f7 commit 0dc0a6f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/com/rabbitmq/client/impl/SocketFrameHandler.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,7 @@ public void writeFrame(Frame frame) throws IOException {
140140
}
141141

142142
public void close() {
143-
try {
144-
_socket.setSoLinger(true, SOCKET_CLOSING_TIMEOUT);
145-
_socket.close();
146-
} catch (IOException ioe) {
147-
// Ignore.
148-
}
143+
try { _socket.setSoLinger(true, SOCKET_CLOSING_TIMEOUT); } catch (Exception _) {}
144+
try { _socket.close(); } catch (Exception _) {}
149145
}
150146
}

0 commit comments

Comments
 (0)