Disable pushing exceptions to ports from ISource.

This commit is contained in:
Nikolai Kochetov 2019-04-30 12:43:51 +03:00
parent 99ff2375ab
commit 0faab7ff12
2 changed files with 8 additions and 8 deletions

View File

@ -43,7 +43,7 @@ ISource::Status ISource::prepare()
void ISource::work()
{
try
/// try
{
current_chunk = generate();
if (!std::get<Chunk>(current_chunk))
@ -51,12 +51,12 @@ void ISource::work()
else
has_input = true;
}
catch (Exception &)
{
current_chunk = std::current_exception();
has_input = true;
got_exception = true;
}
// catch (Exception &)
// {
// current_chunk = std::current_exception();
// has_input = true;
// got_exception = true;
// }
}
}

View File

@ -12,7 +12,7 @@ protected:
OutputPort & output;
bool has_input = false;
bool finished = false;
bool got_exception = false;
[[maybe_unused]] bool got_exception = false;
Port::Data current_chunk;
virtual Chunk generate() = 0;