nodes: Properly reset data overlays when errors occurred
This commit is contained in:
parent
ce22028781
commit
2c3a6d38ab
@ -125,6 +125,11 @@ namespace hex {
|
||||
}
|
||||
} catch (dp::Node::NodeError &e) {
|
||||
this->m_currNodeError = e;
|
||||
|
||||
for (auto overlay : this->m_dataOverlays)
|
||||
SharedData::currentProvider->deleteOverlay(overlay);
|
||||
this->m_dataOverlays.clear();
|
||||
|
||||
} catch (std::runtime_error &e) {
|
||||
printf("Node implementation bug! %s\n", e.what());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user