Handle IRC client closing better

This commit is contained in:
Ken-Håvard Lieng 2016-01-15 08:26:06 +01:00
parent 947823ab41
commit 6865bf2832
3 changed files with 69 additions and 84 deletions

View file

@ -15,6 +15,7 @@ func testClientSend() (*Client, chan string) {
c := testClient()
conn := &mockConn{hook: make(chan string, 16)}
c.conn = conn
c.sendRecv.Add(1)
go c.send()
return c, conn.hook
}