Skip to content

Commit 1ccadd2

Browse files
committed
Change condition to check SSLContext
The other way around :-) References #297
1 parent c239177 commit 1ccadd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/rabbitmq/client/ConnectionFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public void setUri(URI uri)
227227
} else if ("amqps".equals(uri.getScheme().toLowerCase())) {
228228
setPort(DEFAULT_AMQP_OVER_SSL_PORT);
229229
// SSL context not set yet, we use the default one
230-
if (this.sslContext != null) {
230+
if (this.sslContext == null) {
231231
useSslProtocol();
232232
}
233233
} else {

0 commit comments

Comments
 (0)