get rid of std::terminate

This commit is contained in:
nikitamikhaylov 2020-10-08 19:46:55 +03:00
parent 67766034f2
commit 9064af6cb6

View File

@ -52,7 +52,7 @@ public:
{ {
need_flush = true; need_flush = true;
if (!IOutputFormat::finalized) if (!IOutputFormat::finalized)
std::terminate(); finalize();
finishAndWait(); finishAndWait();
} }
@ -70,7 +70,6 @@ public:
void onCancel() override void onCancel() override
{ {
std::cout << "onCancel" << std::endl;
finishAndWait(); finishAndWait();
} }