]> git.basschouten.com Git - openhab-addons.git/commit
[upb] Fix race condition (#11366)
authorMarcus Better <marcusb@users.noreply.github.com>
Mon, 11 Oct 2021 19:44:44 +0000 (15:44 -0400)
committerGitHub <noreply@github.com>
Mon, 11 Oct 2021 19:44:44 +0000 (21:44 +0200)
commit30753d70b8a54a5c90e64cb0767f234e7039a83b
treec613bd22b83407f09fb785044c9ee845969940b8
parent60b4dad600ef0c1181073f99b294318549570d0c
[upb] Fix race condition (#11366)

There was a harmless race condition between a message being written
and the PIM being initalized to message mode by the binding. This adds
a latch to ensure writes happen after initalization.

Signed-off-by: Marcus Better <marcus@better.se>
bundles/org.openhab.binding.upb/src/main/java/org/openhab/binding/upb/internal/handler/SerialIoThread.java