Skip to content

Commit 7d8166d

Browse files
author
Gerald Unterrainer
committed
Merge branch 'develop'
2 parents 1335919 + b7a2820 commit 7d8166d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/info/unterrainer/commons/mqttclient/MqttClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public MqttClient(final String clientId, final String mqttServerAddress, final J
6060
* Connects to the given server if it's disconnected. Immediately returns
6161
* otherwise.
6262
*/
63-
public void connect() {
63+
public synchronized void connect() {
6464
if (client.isConnected())
6565
return;
6666
try {

0 commit comments

Comments
 (0)