Skip to content

Commit

Permalink
windows: eliminate the redundant assignment in eventloop.close()
Browse files Browse the repository at this point in the history
  • Loading branch information
panjf2000 committed Jul 3, 2024
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
Expand Up @@ -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 {
Expand Down

0 comments on commit e91e9b3

Please sign in to comment.