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

core: fix interrupt during connection phase (before connection accepted) #1558

Merged

Conversation

HumorBaby
Copy link
Contributor

Before the connection is accepted (and the socket exists), CTRL+C will
start closing nicely, until irc.Bot.handle_close. handle_close()
tries to close the socket, even if it may not exist, which leads to a
messy exit.

All that is needed is a quick check to ensure a socket exists before
trying to close it.

Before the connection is accepted (and the socket exists), `^C` will
start closing nicely, until `irc.Bot.handle_close`. `handle_close()`
tries to close the socket, even if it may not exist, which leads to a
messy exit.

All that is needed is a quick check to ensure a socket exists before
trying to close it.
@HumorBaby HumorBaby added this to the 6.6.6 milestone Apr 12, 2019
@dgw dgw added the Bugfix Generally, PRs that reference (and fix) one or more issue(s) label Apr 12, 2019
Copy link
Member

@dgw dgw left a comment

Choose a reason for hiding this comment

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

Yep, straight continuation of #1534 based on the updated state of #1527. Easy approve.

@dgw dgw merged commit ebf2dca into sopel-irc:6.6.x Apr 13, 2019
@HumorBaby HumorBaby deleted the fix-interrupt-before-conn-accepted-6.6.x branch August 28, 2019 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix Generally, PRs that reference (and fix) one or more issue(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants