Commit 9708dba6 authored by Dominik Charousset's avatar Dominik Charousset

Fix error signaling on op::buffer

When receiving `on_complete` from the control observable, only set an
error if we have not already started to shut down.
parent 9324dc64
...@@ -142,8 +142,9 @@ public: ...@@ -142,8 +142,9 @@ public:
void fwd_on_complete(buffer_emit_t) { void fwd_on_complete(buffer_emit_t) {
control_sub_ = nullptr; control_sub_ = nullptr;
err_ = make_error(sec::end_of_stream, if (state_ == state::running)
"buffer: unexpected end of the control stream"); err_ = make_error(sec::end_of_stream,
"buffer: unexpected end of the control stream");
shutdown(); shutdown();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment