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 2022/08/29 14:13:12 UTC

[plc4x] branch develop updated: fix(plc4go/spi): fixed transaction await never ending

This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new 927baf333 fix(plc4go/spi): fixed transaction await never ending
927baf333 is described below

commit 927baf3337f3fcf78a2c7acf657ab225a2d58357
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Mon Aug 29 16:13:05 2022 +0200

    fix(plc4go/spi): fixed transaction await never ending
---
 plc4go/spi/RequestTransactionManager.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plc4go/spi/RequestTransactionManager.go b/plc4go/spi/RequestTransactionManager.go
index e4c800d58..0113cd165 100644
--- a/plc4go/spi/RequestTransactionManager.go
+++ b/plc4go/spi/RequestTransactionManager.go
@@ -187,7 +187,7 @@ func (f *CompletionFuture) complete() {
 }
 
 func (f *CompletionFuture) AwaitCompletion() error {
-	for !f.completed || !f.errored {
+	for !f.completed && !f.errored {
 		time.Sleep(time.Millisecond * 10)
 	}
 	return f.err