Skip to content

Commit

Permalink
Fix attempting to close an already closed connection
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkReedZ committed May 13, 2024
1 parent 6120231 commit 02548db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/engine_uring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,8 @@ void automata_t::receive_next() noexcept {
void automata_t::operator()() noexcept {

if (is_corrupted())
return close_gracefully();
if ( connection.stage != stage_t::waiting_to_close_k )
return close_gracefully();

switch (connection.stage) {

Expand Down

0 comments on commit 02548db

Please sign in to comment.