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

bugfix send msg to all established peers. #9

Merged
merged 1 commit into from
Sep 28, 2020
Merged

Conversation

gotoin
Copy link

@gotoin gotoin commented Aug 4, 2020

fix Cannot read property 'writable' of undefined

@gotoin
Copy link
Author

gotoin commented Aug 4, 2020

@Unitech

@Unitech Unitech merged commit 9c43e65 into Unitech:master Sep 28, 2020
@medisoft
Copy link

On Windows some times I get sock variable null. I've patched this that way:

On Linux I'm getting the same error sometimes, I think this patch should be added.

sock = socks[i];
if (sock.writable) sock.write(buf);
for (var sock of socks) {
if (sock.writable) sock.write(buf);

Choose a reason for hiding this comment

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

should set to if(sock && sock.writable)... because sometimes sock comes null/undefined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants