From 95288a16c5aa1d2c6d969b09b62be0488c666089 Mon Sep 17 00:00:00 2001 From: Thomas Jager Date: Wed, 12 Feb 2014 08:42:10 +0100 Subject: [PATCH] Fix Formats and Send error to main goroutine on Disconnect --- irc.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/irc.go b/irc.go index 2541f0d..91aa966 100644 --- a/irc.go +++ b/irc.go @@ -13,6 +13,7 @@ import ( "os" "strings" "time" + "errors" ) const ( @@ -232,6 +233,7 @@ func (irc *Connection) Disconnect() { irc.netsock.Close() irc.netsock = nil } + irc.Error <- errors.New("Disconnect Called") } func (irc *Connection) Reconnect() error {