Skip to content

Commit

Permalink
Correct typo UPD => UDP (panjf2000#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Park Chi Kuk committed Apr 7, 2020
1 parent a0d53f5 commit d8a2ee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eventloop_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (el *eventloop) loopReadUDP(fd int) error {
n, sa, err := unix.Recvfrom(fd, el.packet, 0)
if err != nil || n == 0 {
if err != nil && err != unix.EAGAIN {
el.svr.logger.Printf("failed to read UPD packet from fd:%d, error:%v\n", fd, err)
el.svr.logger.Printf("failed to read UDP packet from fd:%d, error:%v\n", fd, err)
}
return nil
}
Expand Down

0 comments on commit d8a2ee6

Please sign in to comment.