-
-
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] Run the Telnet socket in a dedicated thread #9511
Conversation
…ad pool. Fixes openhab#9494 Signed-off-by: Jan-Willem Veldhuis <[email protected]>
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.
I would suggest a differet approach: Instead of implementing Runnable
in DenonMarantzTelnetClient
you could extend Thread
. Then in l. 64 while (i!sInterrupted())
and call disconnect
after exiting the while
-loop. In the connector you can call telnetClient.start()
to start it and telnetClient.interrupt()
to shut it down.
Also please set a name to the thread |
Thank you for fixing this. For thread naming see: #8216 |
Signed-off-by: Jan-Willem Veldhuis <[email protected]>
) * Run the Telnet socket in a dedicated thread, not from the shared thread pool. Fixes openhab#9494 Signed-off-by: Jan-Willem Veldhuis <[email protected]>
) * Run the Telnet socket in a dedicated thread, not from the shared thread pool. Fixes openhab#9494 Signed-off-by: Jan-Willem Veldhuis <[email protected]> Signed-off-by: Joseph Hagberg <[email protected]>
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/denonmarantz-binding-broken-after-update-to-oh3-1/124275/6 |
) * Run the Telnet socket in a dedicated thread, not from the shared thread pool. Fixes openhab#9494 Signed-off-by: Jan-Willem Veldhuis <[email protected]>
) * Run the Telnet socket in a dedicated thread, not from the shared thread pool. Fixes openhab#9494 Signed-off-by: Jan-Willem Veldhuis <[email protected]>
Fixes #9494