Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gateway中s.resp.kick的disconnect调用没有意义吧 #18

Open
elitiwin opened this issue Nov 21, 2021 · 1 comment
Open

gateway中s.resp.kick的disconnect调用没有意义吧 #18

elitiwin opened this issue Nov 21, 2021 · 1 comment

Comments

@elitiwin
Copy link

gateway的s.resp.kick中,先将conn对象销毁了,然后调用disconnect方法,而在disconnect方法中首先判断conn是否存在,如果不存在直接退出了,那这里调用disconnect方法没有意义吧。
conns[c.fd] = nil
disconnect(c.fd)

@luopeiyu
Copy link
Owner

hi,是呢,此处调用disconnect意义不大,可以不调用。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants