fix reconnection logic

This commit is contained in:
peted
2015-11-14 23:10:39 +10:00
parent db3338ebd4
commit 937f84605b
2 changed files with 13 additions and 12 deletions

View File

@@ -27,7 +27,7 @@ type Connection struct {
socket net.Conn
pwrite chan string
end chan struct{}
end chan int
nick string //The nickname we want.
nickcurrent string //The nickname we currently have.
@@ -42,6 +42,7 @@ type Connection struct {
Log *log.Logger
stopped bool
quit bool
}
// A struct to represent an event.