Skip to content

Commit

Permalink
UdpClientProtocol bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
richturner committed Jul 2, 2019
1 parent af34f4f commit 73e580b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ protected synchronized void processNextCommand(String str, Consumer<String> resp


client.sendMessage(str);
responseMonitor = executorService.scheduleWithFixedDelay(failureAction, 0, timeoutMillis);
responseMonitor = executorService.scheduleWithFixedDelay(failureAction, timeoutMillis, timeoutMillis);
}
}

Expand Down Expand Up @@ -400,7 +400,7 @@ protected void doLinkAttribute(AssetAttribute attribute, AssetAttribute protocol
return;
}

final String writeValue = Values.getMetaItemValueOrThrow(attribute, META_ATTRIBUTE_WRITE_VALUE, true, true)
final String writeValue = Values.getMetaItemValueOrThrow(attribute, META_ATTRIBUTE_WRITE_VALUE, false, true)
.map(Object::toString).orElse(null);

final Integer pollingMillis = Values.getMetaItemValueOrThrow(attribute, META_POLLING_MILLIS, false, true)
Expand Down Expand Up @@ -529,7 +529,7 @@ protected Consumer<Value> createWriteConsumer(ClientAndQueue clientAndQueue, Att
if (!TextUtil.isNullOrEmpty(writeValue)) {
if (str.isEmpty()) {
str = writeValue;
} else {
} else if (writeValue.contains(DYNAMIC_VALUE_PLACEHOLDER)) {
str = writeValue.replaceAll(DYNAMIC_VALUE_PLACEHOLDER_REGEXP, str);
}
}
Expand Down

0 comments on commit 73e580b

Please sign in to comment.