Remove pread

This commit is contained in:
Chance Zibolski 2014-07-14 17:05:06 -07:00
parent 30980fcbad
commit 846881130f
2 changed files with 4 additions and 6 deletions

2
irc.go
View File

@ -291,7 +291,6 @@ func (irc *Connection) ErrorChan() chan error {
func (irc *Connection) Disconnect() {
close(irc.end)
close(irc.pwrite)
close(irc.pread)
irc.Wait()
irc.socket.Close()
@ -360,7 +359,6 @@ func (irc *Connection) Connect(server string) error {
}
irc.Log.Printf("Connected to %s (%s)\n", irc.server, irc.socket.RemoteAddr())
irc.pread = make(chan string, 10)
irc.pwrite = make(chan string, 10)
irc.Error = make(chan error, 2)
irc.Add(3)

View File

@ -26,7 +26,7 @@ type Connection struct {
socket net.Conn
netsock net.Conn
pread, pwrite chan string
pwrite chan string
end chan struct{}
nick string //The nickname we want.