-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
CHE-1979: Fix closing terminal widget on typing "exit" or when user kills terminal process #3554
Conversation
socket.setOnCloseHandler(new ConnectionClosedHandler() { | ||
@Override | ||
public void onClose(WebSocketClosedEvent event) { | ||
if (CLOSE_NORMAL == event.getCode()) { |
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.
Why we close terminal if and only if CLOSE_NORMAL == event.getCode()
?
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.
Because, in case abnormal closing launches onErrorHandler and we try reconnect to terminal...
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/1476/ |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/1573/ |
…ls terminal process Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
095b17e
to
ab619a3
Compare
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/1585/ |
…ls terminal process (eclipse-che#3554) Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
What does this PR do?
Fix closing terminal widget on typing "exit" or when user kills terminal process by "SIGHUP", "SIGTERM", "SIGKILL" and so on.
What issues does this PR fix or reference?
#1979
Please review @evoevodin @tolusha @azatsarynnyy