Skip to content

Commit 748ac07

Browse files
author
Ian Craggs
committed
Fix issue #572 for MQTT V3
1 parent 3ac6518 commit 748ac07

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/internal/NetworkModuleService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/*
2+
* Copyright (c) 2009, 2019 IBM Corp.
3+
*
24
* All rights reserved. This program and the accompanying materials
35
* are made available under the terms of the Eclipse Public License v1.0
46
* and Eclipse Distribution License v1.0 which accompany this distribution.
@@ -53,7 +55,7 @@ private NetworkModuleService() {
5355
* @throws IllegalArgumentException is case the URI is invalid or there is no {@link NetworkModule} installed for
5456
* the URI scheme
5557
*/
56-
public static void validateURI(String brokerUri) throws IllegalArgumentException {
58+
public synchronized static void validateURI(String brokerUri) throws IllegalArgumentException {
5759
try {
5860
URI uri = new URI(brokerUri);
5961
String scheme = uri.getScheme();

0 commit comments

Comments
 (0)