diff --git a/README.md b/README.md index 439338a05..bdba1a6f3 100644 --- a/README.md +++ b/README.md @@ -244,50 +244,6 @@ Become a bronze sponsor with a monthly donation of $10 and get your logo on our       -# 💴 Patrons - - - - - - - - - - - - - -
- - Patrick Othmer - - - - Jimmy - - - - ChenZhen - - - - Mai Yang - - - - 王开帅 - - - - Unger Alejandro - - - - Weng Wei - -
- # 🔑 JetBrains OS licenses `gnet` had been being developed with `GoLand` IDE under the **free JetBrains Open Source license(s)** granted by JetBrains s.r.o., hence I would like to express my thanks here. diff --git a/README_ZH.md b/README_ZH.md index f5f22c867..fe5a4f28f 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -244,50 +244,6 @@ Test duration : 15s       -# 💴 资助者 - - - - - - - - - - - - - -
- - Patrick Othmer - - - - Jimmy - - - - ChenZhen - - - - Mai Yang - - - - 王开帅 - - - - Unger Alejandro - - - - Weng Wei - -
- # 🔑 JetBrains 开源证书支持 `gnet` 项目一直以来都是在 JetBrains 公司旗下的 GoLand 集成开发环境中进行开发,基于 **free JetBrains Open Source license(s)** 正版免费授权,在此表达我的谢意。 diff --git a/gnet_test.go b/gnet_test.go index 3147bb70f..50abb6e0c 100644 --- a/gnet_test.go +++ b/gnet_test.go @@ -501,9 +501,8 @@ func (s *testServer) OnClose(c Conn, err error) (action Action) { if err != nil { logging.Debugf("error occurred on closed, %v\n", err) } - if c.LocalAddr().Network() != "udp" { - require.Equal(s.tester, c.Context(), c, "invalid context") - } + + require.Equal(s.tester, c.Context(), c, "invalid context") atomic.AddInt32(&s.disconnected, 1) return