~samwhited/xmpp

c16b6efbcc3fb35246454489c509d9a9300aecee — Sam Whited 4 years ago d4ce9cb
Clarification for the behavior of Close()
1 files changed, 1 insertions(+), 1 deletions(-)

M conn.go
M conn.go => conn.go +1 -1
@@ 80,7 80,7 @@ func (c *Conn) Write(b []byte) (n int, err error) {
	return c.rwc.Write(b)
}

// Close closes the connection.
// Close closes the underlying connection.
// Any blocked Read or Write operations will be unblocked and return errors.
func (c *Conn) Close() error {
	return c.rwc.Close()