You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2018/01/11 18:24:22 UTC
[incubator-plc4x] branch master updated: implement double null
check to avoid unnecessary waits
This is an automated email from the ASF dual-hosted git repository.
sruehl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git
The following commit(s) were added to refs/heads/master by this push:
new f091908 implement double null check to avoid unnecessary waits
f091908 is described below
commit f0919081efca66911116de362aeb2cdf7f9a7aef
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Thu Jan 11 19:24:17 2018 +0100
implement double null check to avoid unnecessary waits
---
.../java/org/apache/plc4x/java/api/messages/items/RequestItem.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/plc4j/api/src/main/java/org/apache/plc4x/java/api/messages/items/RequestItem.java b/plc4j/api/src/main/java/org/apache/plc4x/java/api/messages/items/RequestItem.java
index 0c3d609..56d20df 100644
--- a/plc4j/api/src/main/java/org/apache/plc4x/java/api/messages/items/RequestItem.java
+++ b/plc4j/api/src/main/java/org/apache/plc4x/java/api/messages/items/RequestItem.java
@@ -57,7 +57,9 @@ public abstract class RequestItem<DATA_TYPE, RESPONSE_ITEM extends ResponseItem>
if (responseItem == null) {
try {
lock.lock();
- responseSet.await();
+ if (responseItem == null) {
+ responseSet.await();
+ }
} catch (InterruptedException e) {
throw new CompletionException(e);
} finally {
--
To stop receiving notification emails like this one, please contact
['"commits@plc4x.apache.org" <co...@plc4x.apache.org>'].