thomasletsch / opencean

EnOcean Java Library
2 stars 6 forks source link

Fix possible dead lock in CircularByteBuffer test #5

Closed maggu2810 closed 10 years ago

maggu2810 commented 10 years ago

The CircularByteBuffer function waitForData runs a loop as long as the condition "isEmpty() && running" is true. If the buffer is empty before the next check is done the loop will never end (as no more data is inserted in the buffer).