Skip to content

Commit 3135fbf

Browse files
committed
auto commit
1 parent 66e2c7a commit 3135fbf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/notes/Socket.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ else if ( ret == 0 )
273273
else
274274
{
275275
// Check if any events detected
276-
for ( int i = 0; i < ret; i++ )
276+
for ( int i = 0; i < ready; i++ )
277277
{
278278
if ( pevents[i].events & EPOLLIN )
279279
{

notes/Socket.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ else if ( ret == 0 )
273273
else
274274
{
275275
// Check if any events detected
276-
for ( int i = 0; i < ret; i++ )
276+
for ( int i = 0; i < ready; i++ )
277277
{
278278
if ( pevents[i].events & EPOLLIN )
279279
{

0 commit comments

Comments
 (0)