From 3135fbf05da8a60c3713e41c97003a01c638f177 Mon Sep 17 00:00:00 2001 From: CyC2018 Date: Sun, 1 Nov 2020 23:40:55 +0800 Subject: [PATCH] auto commit --- docs/notes/Socket.md | 2 +- notes/Socket.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/notes/Socket.md b/docs/notes/Socket.md index 6138490c..38aef777 100644 --- a/docs/notes/Socket.md +++ b/docs/notes/Socket.md @@ -273,7 +273,7 @@ else if ( ret == 0 ) else { // Check if any events detected - for ( int i = 0; i < ret; i++ ) + for ( int i = 0; i < ready; i++ ) { if ( pevents[i].events & EPOLLIN ) { diff --git a/notes/Socket.md b/notes/Socket.md index 6138490c..38aef777 100644 --- a/notes/Socket.md +++ b/notes/Socket.md @@ -273,7 +273,7 @@ else if ( ret == 0 ) else { // Check if any events detected - for ( int i = 0; i < ret; i++ ) + for ( int i = 0; i < ready; i++ ) { if ( pevents[i].events & EPOLLIN ) {