Skip to content

Commit

Permalink
[fix] Fixed a crash caused by a connection failure StreamEnd happenin…
Browse files Browse the repository at this point in the history
…g after a pipeline reset
  • Loading branch information
pajama-coder committed Dec 6, 2023
1 parent 775f0a2 commit a3b9d47
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/outbound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ auto Outbound::address() -> pjs::Str* {

void Outbound::close(StreamEnd *eos) {
InputContext ic;
close();
retain();
input(eos);
close();
release();
}

void Outbound::state(State state) {
Expand All @@ -117,7 +119,9 @@ void Outbound::state(State state) {
}

void Outbound::input(Event *evt) {
m_input->input(evt);
if (m_state != State::closed) {
m_input->input(evt);
}
}

void Outbound::error(StreamEnd::Error err) {
Expand Down

0 comments on commit a3b9d47

Please sign in to comment.