try to shutdown more safely so callbacks, etc don't try and use the read/write channels after they are closed

This commit is contained in:
Andrew Montgomery-Hurrell
2014-02-09 12:02:05 +00:00
parent 09ea5672e2
commit 0b6c954b52
2 changed files with 85 additions and 67 deletions

View File

@@ -26,7 +26,7 @@ type Connection struct {
netsock net.Conn
pread, pwrite chan string
readerExit, writerExit, pingerExit chan bool
endping chan bool
endping, endread, endwrite chan bool
nick string //The nickname we want.
nickcurrent string //The nickname we currently have.