fix npd
This commit is contained in:
parent
ae6c14b16f
commit
eb8e5133ab
|
@ -31,7 +31,9 @@ type WSChannel struct {
|
||||||
|
|
||||||
// Close closed the channel.
|
// Close closed the channel.
|
||||||
func (c *WSChannel) Close() {
|
func (c *WSChannel) Close() {
|
||||||
c.Conn.Close()
|
if nil != c.Conn {
|
||||||
|
c.Conn.Close()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Refresh refreshes the channel by updating its use time.
|
// Refresh refreshes the channel by updating its use time.
|
||||||
|
|
Loading…
Reference in New Issue