Skip to content

Commit

Permalink
Fix typo in 01_rot13_server_libevent.c
Browse files Browse the repository at this point in the history
  • Loading branch information
azat committed Feb 18, 2024
1 parent 5e1590d commit ddd1681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples_01/01_rot13_server_libevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ do_write(evutil_socket_t fd, short events, void *arg)
}

if (state->n_written == state->buffer_used)
state->n_written = state->write_upto = state->buffer_used = 1;
state->n_written = state->write_upto = state->buffer_used = 0;

event_del(state->write_event);
}
Expand Down

0 comments on commit ddd1681

Please sign in to comment.