go-irc / irc

A simple go irc library meant to be a building block for other projects
MIT License
142 stars 17 forks source link

Ensure all write errors cause the client to exit #66

Closed belak closed 6 years ago

belak commented 6 years ago

This allows all errors to cause the connection to close. This ensures that the ping timeout will be able to cause the connection to exit and should fix the issues I've been seeing with the bot hanging when the connection has died.

belak commented 6 years ago

This has been causing issues on a bot I run for quite some time. It's a fairly small change so I'm fairly comfortable merging this.