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
[NETBEANS-6177] Fix an issue the stop command is not sent #3549
Conversation
@neilcsmith-net Can we merge this into the |
0e76d67
to
79f57dd
Compare
@@ -124,6 +125,14 @@ public void run() { | |||
} catch (Throwable e) { | |||
log(e, Level.SEVERE); | |||
} | |||
if (canceled) { | |||
synchronized (commands) { |
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.
The change looks good to me. However, the threading in this class is not documented and is not clear to me - I can see no synchronization of commands
in preprocess()
method, for example.
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.
You are right!
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.
@neilcsmith-net please merge it if it is OK for you. Thank you, guys! |
@tmysik Thank you for your review! |
- https://issues.apache.org/jira/browse/NETBEANS-6177 - Related to NETBEANS-5080 - Use the `canceled` field instead of `detachRequest.set(true)` because the stop command is not sent in `sendStopCommand()` if `detacheRequest` is `true`
79f57dd
to
582c2c5
Compare
OK, thanks, just caught in time for syncing for 13-rc3 so will merge. Not sure if we'll have a 13-rc4 yet. |
canceled
field instead ofdetachRequest.set(true)
becausethe stop command is not sent in
sendStopCommand()
ifdetacheRequest
istrue