Skip to content

Commit

Permalink
Don't accidently recet use-ssl if set outside
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed May 24, 2024
1 parent 2b76b05 commit d6dfbfa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/xmpp/xmpp-core/connector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,9 @@ void AdvancedConnector::connectToServer(const QString &server)
#endif

connect(s, &BSocket::connected, this, [this, s]() {
setUseSSL(s->service() == QLatin1String(XMPP_CLIENT_TLS_SRV));
if (!useSSL()) {
setUseSSL(s->service() == QLatin1String(XMPP_CLIENT_TLS_SRV));
}
bs_connected();
});
connect(s, SIGNAL(error(int)), SLOT(bs_error(int)));
Expand Down

0 comments on commit d6dfbfa

Please sign in to comment.