Skip to content

Commit

Permalink
windows: eliminate the redundant assignment in eventloop.close()
Browse files Browse the repository at this point in the history
panjf2000 committed Jul 3, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 42cc9a8 commit e91e9b3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions eventloop_windows.go
Original file line number Diff line number Diff line change
@@ -192,8 +192,6 @@ func (el *eventloop) close(c *conn, err error) error {
delete(el.connections, c)
el.incConn(-1)
action := el.eventHandler.OnClose(c, err)
err = nil

err = c.rawConn.Close()
c.release()
if err != nil {

0 comments on commit e91e9b3

Please sign in to comment.