Skip to content
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

check for null/undefined session in addSessionData #1698

Merged
merged 2 commits into from
Apr 29, 2017

Conversation

zsol
Copy link
Contributor

@zsol zsol commented Mar 24, 2017

Work around incorrect event ordering between SESSION_PTY_EXIT and SESSION_ADD_DATA. See #1628 for more context.
This is ready to merge. Fixes #1628.

data
});
const session = getState().sessions.sessions[uid];
if (session !== null && session !== undefined) {
Copy link
Contributor

@ppot ppot Mar 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (session) should do the trick

@ppot ppot added the 👩‍🔬 Status: In Progress Issue or PR is currently active and work is in progress label Mar 25, 2017
@zsol
Copy link
Contributor Author

zsol commented Apr 10, 2017

friendly ping? :) This is hitting me almost every day

@andrroy
Copy link

andrroy commented Apr 28, 2017

@ppot For what its worth, I have tested this PR locally. Ref discussion in #1628, I am unable to run the current version of Hyper. When testing this fix, I no longer have that issue.

@andrroy
Copy link

andrroy commented Apr 28, 2017

Great work btw, @zsol!

type: SESSION_PTY_DATA,
uid,
data
});
Copy link
Contributor

@MartyGentillon MartyGentillon Apr 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why has this been moved outside of the else? Will it happen twice if it is a URL?

@zsol
Copy link
Contributor Author

zsol commented Apr 28, 2017 via email

@ppot ppot merged commit af21493 into vercel:master Apr 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👩‍🔬 Status: In Progress Issue or PR is currently active and work is in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants