Handle IRC client closing better
This commit is contained in:
parent
947823ab41
commit
6865bf2832
3 changed files with 69 additions and 84 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue