projects
/
ssh-chat
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd74201
)
Trying a different close thing, other oen was failing?
author
Andrey Petrov
<andrey.petrov@shazow.net>
Sun, 4 Jan 2015 01:20:39 +0000
(17:20 -0800)
committer
Andrey Petrov
<andrey.petrov@shazow.net>
Sun, 4 Jan 2015 01:20:39 +0000
(17:20 -0800)
client.go
patch
|
blob
|
history
diff --git
a/client.go
b/client.go
index dcec55b32bc4499c0fc06d725c8c0e25258bf601..dac37863122c82cb05e84ee232e460177de913df 100644
(file)
--- a/
client.go
+++ b/
client.go
@@
-127,7
+127,7
@@
func (c *Client) Send(msg string) {
case c.Msg <- msg:
default:
logger.Errorf("Msg buffer full, dropping: %s (%s)", c.Name, c.Conn.RemoteAddr())
- c.Conn.Close()
+ c.Conn.C
onn.C
lose()
}
}