Small bug fix
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>org.openautonomousconnection</groupId>
|
<groupId>org.openautonomousconnection</groupId>
|
||||||
<artifactId>InfoNameLib</artifactId>
|
<artifactId>InfoNameLib</artifactId>
|
||||||
<version>1.0.0-BETA.1.2</version>
|
<version>1.0.0-BETA.1.3</version>
|
||||||
<organization>
|
<organization>
|
||||||
<name>Open Autonomous Connection</name>
|
<name>Open Autonomous Connection</name>
|
||||||
<url>https://open-autonomous-connection.org/</url>
|
<url>https://open-autonomous-connection.org/</url>
|
||||||
|
|||||||
@@ -139,12 +139,11 @@ public final class OacWebPacketListener extends EventListener {
|
|||||||
|
|
||||||
private void connectServer(String hostname, int port) {
|
private void connectServer(String hostname, int port) {
|
||||||
try {
|
try {
|
||||||
client.buildServerConnection(null, client.getProtocolBridge().getProtocolValues().ssl);
|
|
||||||
|
|
||||||
if (client.getClientServerConnection() != null && client.getClientServerConnection().isConnected()) {
|
if (client.getClientServerConnection() != null && client.getClientServerConnection().isConnected()) {
|
||||||
client.getClientServerConnection().disconnect();
|
client.getClientServerConnection().disconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
client.buildServerConnection(null, client.getProtocolBridge().getProtocolValues().ssl);
|
||||||
client.getClientServerConnection().connect(hostname, port);
|
client.getClientServerConnection().connect(hostname, port);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
broker.invalidateCurrentInfoName();
|
broker.invalidateCurrentInfoName();
|
||||||
|
|||||||
Reference in New Issue
Block a user