-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[denonmarantz] Fix blocking initialization #17057
[denonmarantz] Fix blocking initialization #17057
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, very clean.
I would consider this for backporting, agree?
Probably not, since it's not zero-risk, and I don't think it's critical - it's been like this for years. So I'd like to run it on my production system for some time to confirm there are no side-effects. I successfully tested two scenarios briefly:
|
@lsiepel - and now I realized I need to check what happens in case of |
I guess you want to catch the interruption exception and quit/return immediate and not start the second telnet connection |
Resolves openhab#16806 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
14c070e
to
2d7fbc9
Compare
I now did a change so the initialization job is scheduled and can be interrupted. It seems this also resolved the issue with endless reconnects. I will do a few more tests and checks tomorrow, so keeping as draft for now. |
I had another look to figure out what was going on when creating a Thing with invalid IP address and quickly deleting the Thing again. It was more or less as expected: The initialization thread was not interrupted by |
Resolves openhab#16806 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Resolves openhab#16806 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Resolves openhab#16806 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
Resolves openhab#16806 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Resolves openhab#16806 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Resolves openhab#16806 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
Resolves #16806