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